![]() |
|
Function object for retrieving the N'th element of a std::pair or std::tuple. More...
#include <stl.h>
Public Member Functions | |
| template<class PairOrTuple > | |
| constexpr decltype(auto) | 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:
|
inlineconstexpr |