proxygen
folly::gen::detail::MergeTuples Class Reference

#include <Combine-inl.h>

Public Member Functions

template<class Tuple >
auto operator() (Tuple &&value) const -> decltype(add_to_tuple(std::get< 0 >(std::forward< Tuple >(value)), std::get< 1 >(std::forward< Tuple >(value))))
 

Detailed Description

Definition at line 179 of file Combine-inl.h.

Member Function Documentation

template<class Tuple >
auto folly::gen::detail::MergeTuples::operator() ( Tuple &&  value) const -> decltype(add_to_tuple( std::get<0>(std::forward<Tuple>(value)), std::get<1>(std::forward<Tuple>(value))))
inline

Definition at line 182 of file Combine-inl.h.

References folly::gen::detail::add_to_tuple(), and type.

184  {
185  static_assert(
186  std::tuple_size<typename std::remove_reference<Tuple>::type>::value ==
187  2,
188  "Can only merge tuples of size 2");
189  return add_to_tuple(
190  std::get<0>(std::forward<Tuple>(value)),
191  std::get<1>(std::forward<Tuple>(value)));
192  }
PskType type
auto add_to_tuple(std::tuple< Types1... > t1, std::tuple< Types2... > t2) -> std::tuple< Types1..., Types2... >
Definition: Combine-inl.h:153
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)

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