23 constexpr iso_3166() noexcept : _v(999) {}
25 constexpr iso_3166(uint16_t number) : _v(number)
27 hi_parse_check(number <= 999,
"ISO-3166 number must be between 0 and 999, got {}", number);
32 [[nodiscard]]
constexpr bool empty()
const noexcept
37 constexpr explicit operator bool()
const noexcept
42 [[nodiscard]]
constexpr uint16_t number()
const noexcept
47 [[nodiscard]] std::string_view code2()
const noexcept;
48 [[nodiscard]] std::string_view code3()
const noexcept;
50 [[nodiscard]]
constexpr friend bool operator==(
iso_3166 const& lhs,
iso_3166 const& rhs)
noexcept =
default;
51 [[nodiscard]]
constexpr friend auto operator<=>(
iso_3166 const& lhs,
iso_3166 const& rhs)
noexcept =
default;