IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::literal Namespace Reference

Integer literals range check (operators are consteval, so a call. More...

Functions

template<class T>
consteval auto make (const unsigned long long value) noexcept -> T
 Integer literal of given type.

Detailed Description

Integer literals range check (operators are consteval, so a call.

to non-constexpr std::abort for out of range value is a compile error)

Function Documentation

◆ make()

template<class T>
auto igros::literal::make ( const unsigned long long value) ->T
nodiscardconstevalnoexcept

Integer literal of given type.

Template Parameters
TInteger type
Parameters
[in]valueLiteral value
Returns
value as T (compile error if it doesn't fit T)

Definition at line 84 of file types.hpp.