Tatooine
Classes | Typedefs | Functions | Variables
tatooine::template_helper Namespace Reference

Classes

struct  all_same_t
 
struct  all_same_t< T >
 
struct  all_same_t< T0, T1, Ts... >
 
struct  back_t
 
struct  back_t< T >
 
struct  back_t< T0, T1, Ts... >
 
struct  flip_t
 
struct  flip_t< T >
 
struct  flip_t< T0, T1, Ts... >
 
struct  flipped
 
struct  front_t
 
struct  get_t
 
struct  get_t< 0, T, Ts... >
 
struct  get_t< i, T, Ts... >
 
struct  getval_impl
 
struct  getval_impl< 0, T, V0, Vs... >
 
struct  getval_impl< i, T, V0, Vs... >
 

Typedefs

template<typename... Ts>
using front = typename front_t< Ts... >::type
 
template<typename... Ts>
using back = typename back_t< Ts... >::type
 
template<std::size_t i, typename... Ts>
using get = typename get_t< i, Ts... >::type
 

Functions

template<typename T >
constexpr auto getval (const unsigned int) -> T
 
template<typename T , typename T0 , typename... Ts>
constexpr auto getval (const unsigned int i, T0 &&t0, Ts &&... ts)
 
template<typename... Ts>
auto flip ()
 

Variables

template<std::size_t i, typename T , T... Vs>
static constexpr auto getval_v = getval_impl<i, T, Vs...>::value
 
template<typename... Ts>
static constexpr bool all_same = all_same_t<Ts...>::value
 

Typedef Documentation

◆ back

template<typename... Ts>
using tatooine::template_helper::back = typedef typename back_t<Ts...>::type

◆ front

template<typename... Ts>
using tatooine::template_helper::front = typedef typename front_t<Ts...>::type

◆ get

template<std::size_t i, typename... Ts>
using tatooine::template_helper::get = typedef typename get_t<i, Ts...>::type

Function Documentation

◆ flip()

template<typename... Ts>
auto tatooine::template_helper::flip ( )
inline

◆ getval() [1/2]

template<typename T , typename T0 , typename... Ts>
constexpr auto tatooine::template_helper::getval ( const unsigned int  i,
T0 &&  t0,
Ts &&...  ts 
)
constexpr

◆ getval() [2/2]

template<typename T >
constexpr auto tatooine::template_helper::getval ( const unsigned int  ) -> T
constexpr

Variable Documentation

◆ all_same

template<typename... Ts>
constexpr bool tatooine::template_helper::all_same = all_same_t<Ts...>::value
staticconstexpr

◆ getval_v

template<std::size_t i, typename T , T... Vs>
constexpr auto tatooine::template_helper::getval_v = getval_impl<i, T, Vs...>::value
staticconstexpr