Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ops::nth_t< N > Struct Template Reference

#include <gextra.h>

Public Member Functions

template<class T>
auto operator() (T &&t) const -> typename std::decay< decltype(std::get< N >(std::forward< T >(t)))>::type
 获取 tuple/pair/array 的第 N 个元素。

Member Function Documentation

◆ operator()()

template<size_t N>
template<class T>
auto console::ops::nth_t< N >::operator() ( T && t) const -> typename std::decay< decltype(std::get< N >( std::forward< T >(t)))>::type
inline

获取 tuple/pair/array 的第 N 个元素。

Parameters
t输入 tuple/pair/array。
Returns
std::get<N>(t)。

The documentation for this struct was generated from the following file: