proxygen
folly::test::TupleTo< std::tuple< U, Us... >, T > Struct Template Reference

Static Public Member Functions

static std::tuple< U, Us... > convert (const T &input)
 

Detailed Description

template<class U, class... Us, class T>
struct folly::test::TupleTo< std::tuple< U, Us... >, T >

Definition at line 96 of file TupleOpsTest.cpp.

Member Function Documentation

template<class U , class... Us, class T >
static std::tuple<U, Us...> folly::test::TupleTo< std::tuple< U, Us... >, T >::convert ( const T input)
inlinestatic

Definition at line 97 of file TupleOpsTest.cpp.

References folly::tuplePrepend().

97  {
98  return tuplePrepend(
99  folly::to<U>(std::get<0>(input)),
100  tupleTo<std::tuple<Us...>>(tupleRange<1>(input)));
101  }
U tupleTo(const T &input)
auto tuplePrepend(T &&car, U &&cdr) -> decltype(std::tuple_cat(std::make_tuple(std::forward< T >(car)), std::forward< U >(cdr)))
Definition: TupleOps.h:117

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