5#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INTEGRAL_CONSTANT_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INTEGRAL_CONSTANT_HPP_
22template <
typename Type, Type Value>
29 using value_type = Type;
34 static constexpr value_type
value{Value};
55 constexpr auto operator()()
const noexcept -> value_type {
return value; }
63template <
typename Type, Type Value>
76using true_type = bool_constant<
true>;
79using false_type = bool_constant<
false>;
A helper class to represent a compile-time constant with the specified type and value....
Definition integral_constant.hpp:23
constexpr auto operator()() const noexcept -> value_type
Nullary function call operator.
Definition integral_constant.hpp:55
constexpr operator value_type() const noexcept
Implicit conversion to Type.
Definition integral_constant.hpp:46
static constexpr value_type value
The constant.
Definition integral_constant.hpp:34
constexpr auto operator()(::arene::base::result< void, E > const &value) const noexcept(noexcept(hash< E >{}(std::declval< E const & >()))) -> std::size_t
Calculate the hash of a result.
Definition result.hpp:1827