Blender
V4.3
source
blender
blenlib
BLI_unroll.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2024 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
BLI_utildefines.h
"
8
9
namespace
blender
{
10
11
template
<
class
Fn,
size_t
...
I
>
void
unroll_impl
(Fn fn, std::index_sequence<I...>
/*indices*/
)
12
{
13
(fn(
I
), ...);
14
}
15
21
template
<
int
N,
class
Fn>
void
unroll
(Fn fn)
22
{
23
unroll_impl
(fn, std::make_index_sequence<N>());
24
}
25
26
}
// namespace blender
BLI_utildefines.h
blender
Definition
ANIM_action.hh:36
blender::unroll_impl
void unroll_impl(Fn fn, std::index_sequence< I... >)
Definition
BLI_unroll.hh:11
blender::unroll
void unroll(Fn fn)
Definition
BLI_unroll.hh:21
I
#define I
Definition
node_texture_proc.cc:28
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0