libyggdrasil  v1.0.0
bsp::TypeSafe< T > Struct Template Reference

Helper class to create type-safe integral types. More...

#include <types.hpp>

Public Member Functions

 TypeSafe ()=default
 
 TypeSafe (const TypeSafe &)=default
 
 TypeSafe (TypeSafe &&)=default
 
 TypeSafe (T value)
 
 operator T ()
 

Detailed Description

template<typename T>
struct bsp::TypeSafe< T >

Helper class to create type-safe integral types.

Template Parameters
T

Constructor & Destructor Documentation

◆ TypeSafe() [1/4]

template<typename T >
bsp::TypeSafe< T >::TypeSafe ( )
default

◆ TypeSafe() [2/4]

template<typename T >
bsp::TypeSafe< T >::TypeSafe ( const TypeSafe< T > &  )
default

◆ TypeSafe() [3/4]

template<typename T >
bsp::TypeSafe< T >::TypeSafe ( TypeSafe< T > &&  )
default

◆ TypeSafe() [4/4]

template<typename T >
bsp::TypeSafe< T >::TypeSafe ( value)
inlineexplicit

Member Function Documentation

◆ operator T()

template<typename T >
bsp::TypeSafe< T >::operator T ( )
inlineexplicit

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