HDK
|
#include <stl.h>
Public Types | |
template<class PairOrTuple > | |
using | return_type = typename std::tuple_element< N, PairOrTuple >::type |
Public Member Functions | |
template<class PairOrTuple > | |
constexpr return_type < PairOrTuple > & | operator() (PairOrTuple &p) const |
template<class PairOrTuple > | |
constexpr const return_type < PairOrTuple > & | operator() (const PairOrTuple &p) const |
template<class PairOrTuple > | |
constexpr return_type < PairOrTuple > && | operator() (PairOrTuple &&p) const |
Function object for retrieving the N'th element of a std::pair or std::tuple. This is similar to std::get<N>, but wrapped up in a function object suitable for use with STL algorithms.
Example:
using TfGet< N >::return_type = typename std::tuple_element<N, PairOrTuple>::type |
|
inline |
|
inline |
|
inline |