53 TIMEMORY_DEFAULT_OBJECT(
cache)
57 std::is_trivially_constructible<RetT>::value> = 0>
63 template <typename RetT, enable_if_t<std::is_same<RetT, cache_type>::value> = 0>
66 return std::forward<RetT>(val);
74 template <typename RetT, enable_if_t<!std::is_same<RetT, cache_type>::value ||
78 return std::forward<RetT>(val);
81 template <
typename Func,
typename RetT,
86 return ((_obj).*(_func))(std::forward<RetT>(_arg));
92template <
typename... Tp>
95 using data_type = std::tuple<std::remove_pointer_t<Tp>...>;
104template <
template <
typename...>
class TupleT,
typename... Tp>
106:
conditional_t<concepts::is_wrapper<TupleT<Tp...>>::value, construct_cache<Tp...>,
107 construct_cache<TupleT<Tp...>>>
112template <
typename... Tp>
118template <
typename... Tp>
124template <
typename... Tp>
convert_t< typename impl::unique< T, type_list<> >::type, TupleT > unique_t
typename construct_cache< Tp... >::type construct_cache_t
typename std::enable_if< B, T >::type enable_if_t
Alias template for enable_if.
typename std::conditional< B, Lhs, Rhs >::type conditional_t
lightweight tuple-alternative for meta-programming logic
The declaration for the types for operations without definitions.
Include the macros for operations.
Declare the operations types.
concept that specifies that a type is not a useful type
this is a placeholder type for optional type-traits. It is used as the default type for the type-trai...
typename trait::cache< Tp >::type cache_type
auto operator()(type &_obj, Func &&_func, RetT &&_arg)
auto operator()(RetT &&val)
void operator()(RetT &&val)
mpl::unique_t< mpl::get_trait_type_t< trait::cache, data_type >, std::tuple<> > type
std::tuple< std::remove_pointer_t< Tp >... > data_type