Blender
V5.0
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
8
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::fn
Definition
BKE_attribute.hh:27
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
for Blender by
doxygen
1.16.1