Iros
 
Loading...
Searching...
No Matches
integral.h File Reference

Go to the source code of this file.

Namespaces

namespace  di
 
namespace  di::literals
 
namespace  di::literals::integral_literals
 

Macros

#define DI_INTEGER_LITERAL(Type)
 

Functions

consteval auto di::literals::integral_literals::operator""_b (unsigned long long value) -> Byte
 
consteval auto di::literals::integral_literals::operator""_b (char value) -> Byte
 

Macro Definition Documentation

◆ DI_INTEGER_LITERAL

#define DI_INTEGER_LITERAL ( Type)
Value:
consteval auto operator""_##Type(unsigned long long value)->Type { \
if (!math::representable_as<Type>(value)) { \
util::compile_time_fail<>(); \
} \
return Type(value); \
}