template<typename>
struct util::always_true_type< typename >
A std::true_type
with a template argument.
- See Also
- util::always_false_type, util::always_true_v
This is one way to allow to specialize for classes with a certain type:
template <typename T, typename = void>
class ReferenceTypeExtractor {
};
template <typename Cont>
struct ReferenceTypeExtractor<
Cont,
<util::always_true_type<typename Cont::value_type>::value>
<blockquote>
</blockquote>
{
using type =
typename Cont::reference;
};
Definition at line 145 of file MetaUtils.h.