bn::type_id_t class

Unique type ID without RTTI.


Public types

using id_type = type_id_t()
Internal id type alias.

Constructors, destructors, conversion operators

type_id_t() defaulted constexpr
Default constructor.

Public functions

auto internal_id() const -> id_type* constexpr
Returns the internal id.


template<typename Type>
auto type_id() -> type_id_t constexpr
Returns the type_id_t of the specified type.
auto operator==(type_id_t a, type_id_t b) -> bool defaulted constexpr
Default equal operator.