Mjolnir Core
Core functionality of the Mjolnir API
Typedefs | Variables
definitions.h File Reference

Contains some basic definitions and concepts that are frequently needed. More...

#include "mjolnir/core/fundamental_types.h"
#include <type_traits>
#include <concepts>
Include dependency graph for definitions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

template<std::integral T_Type>
using EquallySizedUnsignedType = typename std::conditional_t< std::is_unsigned_v< T_Type >, T_Type, std::conditional_t< std::is_same_v< T_Type, IPT >, UPT, std::conditional_t< sizeof(T_Type)==1, U8, std::conditional_t< sizeof(T_Type)==2, U16, std::conditional_t< sizeof(T_Type)==4, U32, U64 > >> >>
 Unsigned integer type with the same size as the reference type. More...
 

Variables

template<typename T_Type >
concept Number = std::is_integral_v<T_Type> || std::is_floating_point_v<T_Type>
 Concept for a number type. More...
 

Detailed Description

Contains some basic definitions and concepts that are frequently needed.

definitions.h