1#ifndef NEFORCE_CORE_UTILITY_NON_HPP__
2#define NEFORCE_CORE_UTILITY_NON_HPP__
13NEFORCE_BEGIN_NAMESPACE__
38 constexpr none_t() noexcept = default;
45 constexpr
bool operator==(const
none_t& other) const noexcept {
return true; }
58 constexpr size_t to_hash() const noexcept {
return constants::FNV_OFFSET_BASIS; }
77NEFORCE_END_NAMESPACE__
NEFORCE_INLINE17 constexpr none_t none
默认空表示
constexpr void swap(none_t &other) noexcept
交换操作
constexpr size_t to_hash() const noexcept
计算哈希值
constexpr bool operator<(const none_t &other) const noexcept
小于比较运算符
constexpr none_t() noexcept=default
默认构造函数