C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
Loading...
Searching...
No Matches
essence::meta::fingerprint Class Reference

A unique identifier of a type, i.e. a fingerprint. More...

#include <fingerprint.hpp>

Public Member Functions

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.
 

Detailed Description

A unique identifier of a type, i.e. a fingerprint.

Constructor & Destructor Documentation

◆ fingerprint()

template<typename T >
essence::meta::fingerprint::fingerprint ( std::type_identity< T > )
inlineexplicitconstevalnoexcept

Create a fingerprint for a type.

Template Parameters
TThe type.

Member Function Documentation

◆ 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: