Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef __CT_CONST_TUPLE_HPP_INCLUDED__
2 #define __CT_CONST_TUPLE_HPP_INCLUDED__
37 template<
class... _Types>
59 :
_Mybase(_rest...), _Myfirst( _f )
62 template<
typename _T0,
typename..._Other>
64 :
_Mybase(std::forward<_Other>(other)...), _Myfirst( std::forward<_T0>(_f0) )
73 template<
size_t _Index>
80 template<
class _This,
class... _Rest>
88 template<
size_t _Index,
class _This,
class... _Rest>
90 :
public tuple_element<_Index - 1, ct_const_tuple<_Rest...>>
94 template<
size_t _Index,
97 get(
const ct_const_tuple<_Types...>& _Tuple) noexcept
99 typedef typename tuple_element<_Index,
ct_const_tuple<_Types...>>::_Ttype _Ttype;
100 return (((
const _Ttype&)_Tuple)._Myfirst);
constexpr const_tuple(_T0 &&_f0, _Other &&...other) noexcept
const_tuple< _Rest... > _Mybase
constexpr const_tuple() noexcept=default
ct_const_tuple< _This, _Rest... > _Ttype
constexpr const tuple_element< _Index, ct_const_tuple< _Types... > >::type & get(const ct_const_tuple< _Types... > &_Tuple) noexcept