MUDA
|
Public Types | |
using | value_type = T |
Public Member Functions | |
MUDA_GENERIC | IdWithType (value_type value) noexcept |
MUDA_GENERIC value_type | value () const noexcept |
MUDA_GENERIC bool | is_valid () const noexcept |
Static Public Attributes | |
static constexpr auto | invalid_id = std::numeric_limits<value_type>::max() |
Protected Attributes | |
value_type | m_value {invalid_id} |
Friends | |
std::ostream & | operator<< (std::ostream &os, const IdWithType &id) |
MUDA_GENERIC friend bool | operator== (const IdWithType &lhs, const IdWithType &rhs) noexcept |
MUDA_GENERIC friend bool | operator!= (const IdWithType &lhs, const IdWithType &rhs) noexcept |
MUDA_GENERIC friend bool | operator< (const IdWithType &lhs, const IdWithType &rhs) noexcept |
MUDA_GENERIC friend bool | operator> (const IdWithType &lhs, const IdWithType &rhs) noexcept |