Blender
V4.5
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
9
#pragma once
10
11
#include <utility>
12
13
namespace
blender
{
14
15
template
<
class
Fn,
size_t
...
I
>
void
unroll_impl
(Fn fn, std::index_sequence<I...>
/*indices*/
)
16
{
17
(fn(
I
), ...);
18
}
19
25
template
<
int
N,
class
Fn>
void
unroll
(Fn fn)
26
{
27
unroll_impl
(fn, std::make_index_sequence<N>());
28
}
29
30
}
// namespace blender
blender
Definition
ANIM_action.hh:36
blender::unroll_impl
void unroll_impl(Fn fn, std::index_sequence< I... >)
Definition
BLI_unroll.hh:15
blender::unroll
void unroll(Fn fn)
Definition
BLI_unroll.hh:25
I
#define I
Definition
node_texture_proc.cc:29
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0