template<
std::size_t N>
class arene::base::priority_tag< N >
A priority tag for overload resolution.
- Template Parameters
-
The priority tag gives an easy to reason about method of controlling the function overload resolution order. It creates an inheritance hierarchy based on the integer given, and overload resultion will rank potential overloads based on the depth of the inheritance hierarchy.
template<class T>
template<class T>
template<class T>
template<class T>
using has_swap = decltype(test(T{}, priority_tag<2>{}));
A priority tag for overload resolution.
Definition priority_tag.hpp:43
static ARENE_MAYBE_UNUSED constexpr auto const & swap
A Customization Point Object implementation of the constexpr compatible std::swap from C++17.
Definition swap.hpp:136
bool_constant< false > false_type
An alias for bool_constant<false>
Definition integral_constant.hpp:79
bool_constant< true > true_type
An alias for bool_constant<true>
Definition integral_constant.hpp:76