AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
aui::sequence_traits< T >::of< first_, up_ > Struct Template Reference

Static Public Member Functions#

static constexpr T first ()
 
static constexpr T last ()
 
static constexpr T at (unsigned index)
 

Member Function Documentation#

◆ at()#

template<typename T = int>
template<T first_, T... up_>
static constexpr T aui::sequence_traits< T >::of< first_, up_ >::at ( unsigned index)
inlinestaticconstexpr

Accepts integer sequence in template parameters and returns the value of the specified integer by it's index.

Parameters
indexindex of the integer
Returns
value of the specified integer.

◆ first()#

template<typename T = int>
template<T first_, T... up_>
static constexpr T aui::sequence_traits< T >::of< first_, up_ >::first ( )
inlinestaticconstexpr

Accepts integer sequence in template parameters and returns the value of the first integer.

Returns
value of the first integer.

◆ last()#

template<typename T = int>
template<T first_, T... up_>
static constexpr T aui::sequence_traits< T >::of< first_, up_ >::last ( )
inlinestaticconstexpr

Accepts integer sequence in template parameters and returns the value of the last integer.

Returns
value of the last integer.