HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Friends
v1::tagged_id< T, Tag, Max > Class Template Reference

Public Types

using value_type = T
 

Public Member Functions

constexpr tagged_id (tagged_id const &other) noexcept=default
 
constexpr tagged_id (tagged_id &&other) noexcept=default
 
constexpr tagged_idoperator= (tagged_id const &other) noexcept=default
 
constexpr tagged_idoperator= (tagged_id &&other) noexcept=default
 
constexpr tagged_id (std::integral auto rhs) noexcept
 
constexpr tagged_id (std::nullopt_t) noexcept
 
constexpr tagged_id (nullptr_t) noexcept
 
constexpr tagged_idoperator= (std::integral auto rhs) noexcept
 
constexpr tagged_idoperator= (std::nullopt_t) noexcept
 
constexpr tagged_idoperator= (nullptr_t) noexcept
 
template<std::integral O>
constexpr operator O () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr value_type const & operator* () const noexcept
 
constexpr std::size_t hash () const noexcept
 
constexpr auto operator<=> (tagged_id const &) const noexcept=default
 
constexpr bool operator== (tagged_id const &) const noexcept=default
 
constexpr bool operator== (nullptr_t) const noexcept
 
constexpr bool operator== (std::nullopt_t) const noexcept
 
constexpr bool operator== (signed char rhs) const noexcept
 
constexpr bool operator== (signed short rhs) const noexcept
 
constexpr bool operator== (signed int rhs) const noexcept
 
constexpr bool operator== (signed long rhs) const noexcept
 
constexpr bool operator== (signed long long rhs) const noexcept
 
constexpr bool operator== (unsigned char rhs) const noexcept
 
constexpr bool operator== (unsigned short rhs) const noexcept
 
constexpr bool operator== (unsigned int rhs) const noexcept
 
constexpr bool operator== (unsigned long rhs) const noexcept
 
constexpr bool operator== (unsigned long long rhs) const noexcept
 
bool holds_invariant () const noexcept
 

Static Public Attributes

static constexpr value_type max = Max
 
static constexpr value_type invalid = max + 1
 
static constexpr value_type mask = static_cast<value_type>((1ULL << std::bit_width(invalid)) - 1)
 

Friends

std::string to_string (tagged_id const &rhs) noexcept
 
std::ostreamoperator<< (std::ostream &lhs, tagged_id const &rhs)
 

The documentation for this class was generated from the following file: