#include <hikogui/utility/tagged_id.hpp>
|
|
using | derived_type = Derived |
|
using | value_type = T |
|
|
constexpr | tagged_id (tagged_id const &other) noexcept=default |
|
constexpr | tagged_id (tagged_id &&other) noexcept=default |
|
constexpr tagged_id & | operator= (tagged_id const &other) noexcept=default |
|
constexpr tagged_id & | operator= (tagged_id &&other) noexcept=default |
|
constexpr | tagged_id (std::nullopt_t) noexcept |
|
constexpr | tagged_id (value_type rhs) |
|
constexpr tagged_id & | operator= (value_type rhs) |
|
constexpr tagged_id & | operator= (std::nullopt_t) noexcept |
|
constexpr bool | empty () const noexcept |
|
constexpr | operator bool () const noexcept |
|
constexpr value_type | value () const |
|
constexpr | operator value_type () const |
|
constexpr value_type | operator* () const |
|
| static tagged_id | make () |
| | Make a new unique identifier.
|
|
|
static constexpr value_type | empty_value = Empty |
|
|
constexpr friend auto | operator<=> (tagged_id const &, tagged_id const &) noexcept=default |
|
constexpr friend bool | operator== (tagged_id const &, tagged_id const &) noexcept=default |
template<typename Derived, std::unsigned_integral T, T Empty>
class v1::tagged_id< Derived, T, Empty >
A tagged identifier.
- Template Parameters
-
| Derived | The derived class. |
| T | The unsigned integer type used as the underlying type. |
| Empty | The underlying value the means empty. Often either zero or std::numeric_limits<T>::max(). |
◆ make()
template<typename Derived, std::unsigned_integral T, T Empty>
Make a new unique identifier.
The documentation for this class was generated from the following file: