halcheck 1.0
Loading...
Searching...
No Matches
halcheck::lib::type_id Struct Reference

A runtime type identifier that does not require RTTI. More...

#include <typeinfo.hpp>

Public Member Functions

constexpr type_id ()
 Constructs the type identifier for void.
 
std::size_t hash () const
 Gets a hash code associated with this type identifier.
 

Static Public Member Functions

template<typename T >
static type_id of ()
 Gets the unique type identifier associated with the given type.
 
template<typename T >
static type_id of ()
 Gets the unique type identifier associated with the given type.
 

Friends

bool operator== (const type_id &lhs, const type_id &rhs)
 
bool operator!= (const type_id &lhs, const type_id &rhs)
 
bool operator< (const type_id &lhs, const type_id &rhs)
 
bool operator> (const type_id &lhs, const type_id &rhs)
 
bool operator<= (const type_id &lhs, const type_id &rhs)
 
bool operator>= (const type_id &lhs, const type_id &rhs)
 

Detailed Description

A runtime type identifier that does not require RTTI.


The documentation for this struct was generated from the following file: