ALPSCore reference
Namespaces | Functions
tuple_traits.hpp File Reference
#include <tuple>
#include <alps/type_traits/common.hpp>
Include dependency graph for tuple_traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 alps
 

Functions

template<size_t Cut, typename... T, size_t... I>
auto alps::tuple_tail_ (const std::tuple< T... > &t, index_sequence< I... > s) -> DECLTYPE(std::make_tuple(std::get< Cut+I >(t)...))
 
template<size_t Trim, size_t Count, typename T >
auto alps::tuple_tail (T &t) -> DECLTYPE(tuple_tail_< Trim >(t, make_index_sequence< Count-Trim >()))
 
template<size_t Trim, typename... T>
auto alps::tuple_tail (const std::tuple< T... > &t) -> DECLTYPE(tuple_tail_< Trim >(t, make_index_sequence< std::tuple_size< std::tuple< T... > >::value-Trim >()))
 iterate over the index sequence to extract a tail of Trim size More...