26 typedef std::unique_ptr<int>
A;
40 template <
class Ret,
class...
Params>
42 typedef typename Ret::value_type
T;
46 template <
class Ret,
class...
Params>
51 template <
class Ret,
class...
Params>
54 return [](
Params...) -> Ret {
return Ret(); };
57 template <
class Ret,
class...
Params>
60 typedef typename Ret::value_type
T;
66 template <
class Ret,
class...
Params>
72 template <
class Ret,
class...
Params>
75 typedef typename Ret::value_type
T;
79 template <
class Ret,
class...
Params>
80 typename std::enable_if<!isFuture<Ret>::value, Ret>::type
aMethod(
Params...) {
84 template <
class Ret,
class...
Params>
86 typedef typename Ret::value_type
T;
—— Concurrent Priority Queue Implementation ——
std::enable_if< isFuture< Ret >::value, Ret >::type aFunction(Params...)
static std::enable_if<!isFuture< Ret >::value, Ret >::type aStaticMethod(Params...)
typename std::enable_if<!isFuture< T >::value >::type EnableUnlessFuture
typename std::enable_if< isFuture< T >::value >::type EnableIfFuture
std::enable_if<!isFuture< Ret >::value, Ret >::type aMethod(Params...)
static const char *const value
static std::enable_if< isFuture< Ret >::value, Ret >::type aStaticMethod(Params...)
std::enable_if< isFuture< Ret >::value, Ret >::type aMethod(Params...)
Future< typename std::decay< T >::type > makeFuture(T &&t)
std::function< Ret(Params...)> aStdFunction(typename std::enable_if<!isFuture< Ret >::value, bool >::type=false)