proxygen
folly::SomeClass Class Reference

#include <ThenCompileTest.h>

Public Member Functions

template<class Ret , class... Params>
std::enable_if<!isFuture< Ret >::value, Ret >::type aMethod (Params...)
 
template<class Ret , class... Params>
std::enable_if< isFuture< Ret >::value, Ret >::type aMethod (Params...)
 

Static Public Member Functions

template<class Ret , class... Params>
static std::enable_if<!isFuture< Ret >::value, Ret >::type aStaticMethod (Params...)
 
template<class Ret , class... Params>
static std::enable_if< isFuture< Ret >::value, Ret >::type aStaticMethod (Params...)
 

Detailed Description

Definition at line 64 of file ThenCompileTest.h.

Member Function Documentation

template<class Ret , class... Params>
std::enable_if<!isFuture<Ret>::value, Ret>::type folly::SomeClass::aMethod ( Params...  )
inline

Definition at line 80 of file ThenCompileTest.h.

Referenced by TEST().

80  {
81  return Ret();
82  }
template<class Ret , class... Params>
std::enable_if<isFuture<Ret>::value, Ret>::type folly::SomeClass::aMethod ( Params...  )
inline

Definition at line 85 of file ThenCompileTest.h.

References folly::makeFuture(), and folly::T.

85  {
86  typedef typename Ret::value_type T;
87  return makeFuture(T());
88  }
folly::std T
Future< typename std::decay< T >::type > makeFuture(T &&t)
Definition: Future-inl.h:1310
template<class Ret , class... Params>
static std::enable_if<!isFuture<Ret>::value, Ret>::type folly::SomeClass::aStaticMethod ( Params...  )
inlinestatic

Definition at line 68 of file ThenCompileTest.h.

Referenced by TEST().

68  {
69  return Ret();
70  }
template<class Ret , class... Params>
static std::enable_if<isFuture<Ret>::value, Ret>::type folly::SomeClass::aStaticMethod ( Params...  )
inlinestatic

Definition at line 73 of file ThenCompileTest.h.

References folly::makeFuture(), and folly::T.

74  {
75  typedef typename Ret::value_type T;
76  return makeFuture(T());
77  }
folly::std T
Future< typename std::decay< T >::type > makeFuture(T &&t)
Definition: Future-inl.h:1310

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