1#ifndef NEFORCE_CORE_UTILITY_NON_HPP__
2#define NEFORCE_CORE_UTILITY_NON_HPP__
13NEFORCE_BEGIN_NAMESPACE__
38 constexpr none_t() noexcept = default;
45 NEFORCE_NODISCARD constexpr
bool equal_to(const
none_t& other) const noexcept {
return true; }
52 NEFORCE_NODISCARD
constexpr bool less_than(
const none_t& other)
const noexcept {
return false; }
77NEFORCE_END_NAMESPACE__
constexpr size_t FNV_OFFSET_BASIS
FNV哈希算法的偏移基础值
constexpr none_t none
默认空表示
constexpr size_t to_hash() const noexcept
计算哈希值
constexpr bool equal_to(const none_t &other) const noexcept
相等比较运算符
constexpr none_t() noexcept=default
默认构造函数
constexpr void swap(none_t &other) noexcept
交换操作
constexpr bool less_than(const none_t &other) const noexcept
小于比较运算符