proxygen
folly::gen::IsCompatibleSignature< Candidate, ExpectedReturn(ArgTypes...)> Class Template Reference

#include <Core-inl.h>

Static Public Attributes

static constexpr bool value = testArgs<Candidate>(nullptr)
 

Static Private Member Functions

template<class F , class ActualReturn = decltype(std::declval<F>()(std::declval<ArgTypes>()...)), bool good = std::is_same<ExpectedReturn, ActualReturn>::value>
static constexpr bool testArgs (int *)
 
template<class F >
static constexpr bool testArgs (...)
 

Detailed Description

template<class Candidate, class ExpectedReturn, class... ArgTypes>
class folly::gen::IsCompatibleSignature< Candidate, ExpectedReturn(ArgTypes...)>

Definition at line 46 of file Core-inl.h.

Member Function Documentation

template<class Candidate , class ExpectedReturn , class... ArgTypes>
template<class F , class ActualReturn = decltype(std::declval<F>()(std::declval<ArgTypes>()...)), bool good = std::is_same<ExpectedReturn, ActualReturn>::value>
static constexpr bool folly::gen::IsCompatibleSignature< Candidate, ExpectedReturn(ArgTypes...)>::testArgs ( int *  )
inlinestaticprivate

Definition at line 52 of file Core-inl.h.

52  {
53  return good;
54  }
template<class Candidate , class ExpectedReturn , class... ArgTypes>
template<class F >
static constexpr bool folly::gen::IsCompatibleSignature< Candidate, ExpectedReturn(ArgTypes...)>::testArgs (   ...)
inlinestaticprivate

Definition at line 57 of file Core-inl.h.

57  {
58  return false;
59  }

Member Data Documentation

template<class Candidate , class ExpectedReturn , class... ArgTypes>
constexpr bool folly::gen::IsCompatibleSignature< Candidate, ExpectedReturn(ArgTypes...)>::value = testArgs<Candidate>(nullptr)
static

Definition at line 62 of file Core-inl.h.


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