A unique identifier of a type, i.e. a fingerprint.
More...
#include <fingerprint.hpp>
|
| template<typename T > |
| consteval | fingerprint (std::type_identity< T >) noexcept |
| | Create a fingerprint for a type.
|
| |
|
constexpr auto | operator<=> (const fingerprint &) const noexcept=default |
| |
| constexpr const char * | name () const noexcept |
| | Gets the name of the type.
|
| |
| constexpr const char * | friendly_name () const noexcept |
| | Gets the friendly name of the type.
|
| |
A unique identifier of a type, i.e. a fingerprint.
◆ fingerprint()
template<typename T >
| essence::meta::fingerprint::fingerprint |
( |
std::type_identity< T > | | ) |
|
|
inlineexplicitconstevalnoexcept |
Create a fingerprint for a type.
- Template Parameters
-
◆ friendly_name()
| const char * essence::meta::fingerprint::friendly_name |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Gets the friendly name of the type.
- Returns
- The friendly name of the type if exists; otherwise the ordinary name.
◆ name()
| const char * essence::meta::fingerprint::name |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Gets the name of the type.
- Returns
- The name of the type.
The documentation for this class was generated from the following file: