Blender  V3.3
Static Public Member Functions | List of all members
blender::ValueSequence< T, Elements > Struct Template Reference

#include <BLI_parameter_pack_utils.hh>

Static Public Member Functions

static constexpr size_t size () noexcept
 
template<size_t I>
static constexpr T at_index ()
 
template<T Element>
static constexpr bool contains ()
 

Detailed Description

template<typename T, T... Elements>
struct blender::ValueSequence< T, Elements >

A type that encodes a list of values of the same type. This is similar to #std::integer_sequence, but a bit more general. It's main purpose it to also support enums instead of just ints.

Definition at line 31 of file BLI_parameter_pack_utils.hh.

Member Function Documentation

◆ at_index()

template<typename T , T... Elements>
template<size_t I>
static constexpr T blender::ValueSequence< T, Elements >::at_index ( )
inlinestaticconstexpr

Get the element at a specific index.

Definition at line 43 of file BLI_parameter_pack_utils.hh.

References I.

◆ contains()

template<typename T , T... Elements>
template<T Element>
static constexpr bool blender::ValueSequence< T, Elements >::contains ( )
inlinestaticconstexpr

Return true if the element is in the sequence.

Definition at line 52 of file BLI_parameter_pack_utils.hh.

◆ size()

template<typename T , T... Elements>
static constexpr size_t blender::ValueSequence< T, Elements >::size ( )
inlinestaticconstexprnoexcept

Get the number of elements in the sequence.

Definition at line 35 of file BLI_parameter_pack_utils.hh.


The documentation for this struct was generated from the following file: