5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MONOSTATE_MONOSTATE_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MONOSTATE_MONOSTATE_HPP_
14#include "arene/base/stdlib_choice/cstddef.hpp"
15#include "arene/base/stdlib_choice/hash.hpp"
16#include "arene/base/stdlib_choice/is_void.hpp"
82 return monostate_hash;
Definition accumulate.hpp:37
typename static_if< std::is_void< T >::value >::template then_apply_else< give_cv_to_t, T, T, monostate > monostate_identity
A metafunction that is an identity for all types except for void types.
Definition monostate.hpp:60
Definition accumulate.hpp:36
::size_t size_t
A type suitable for holding the size of an object.
Definition cstddef.hpp:29
#define ARENE_NODISCARD
An alias for [[nodiscard]] , or a no-op if the attribute is not supported.
Definition nodiscard.hpp:26
A monostate type that is a well-behaved empty value for variants.
Definition monostate.hpp:28
ARENE_NODISCARD friend constexpr auto operator==(monostate, monostate) noexcept -> bool
All monostates are equal.
Definition monostate.hpp:32
ARENE_NODISCARD friend constexpr auto operator<(monostate, monostate) noexcept -> bool
A monostate is never less than another monostate.
Definition monostate.hpp:40
ARENE_NODISCARD friend constexpr auto operator!=(monostate, monostate) noexcept -> bool
All monostates are not not equal.
Definition monostate.hpp:36
ARENE_NODISCARD friend constexpr auto operator<=(monostate, monostate) noexcept -> bool
A monostate is always less-equal than another monostate as all are equal.
Definition monostate.hpp:44
ARENE_NODISCARD friend constexpr auto operator>=(monostate, monostate) noexcept -> bool
A monostate is always greater-equal than another monostate as all are equal.
Definition monostate.hpp:52
ARENE_NODISCARD friend constexpr auto operator>(monostate, monostate) noexcept -> bool
A monostate is never greater than another monostate.
Definition monostate.hpp:48
A metaprogramming facility for selecting a branch statically without evaluating both branches apriori...
Definition static_if.hpp:48
arene::base::monostate argument_type
The argument type.
Definition monostate.hpp:76
constexpr auto operator()(arene::base::monostate const &) const noexcept -> std::size_t
Compute the hash of a monostate instance.
Definition monostate.hpp:80
std::size_t result_type
The result type.
Definition monostate.hpp:74
hash function primary template
Definition hash.hpp:179