namespace inline
literalsInline namespace for literal operators.
Functions
- auto operator""_i16(ulonglong const value) → i16 constexpr
- Literal operator for i16.
- auto operator""_i32(ulonglong const value) → i32 constexpr
- Literal operator for i32.
- auto operator""_i64(ulonglong const value) → i64 constexpr
- Literal operator for i64.
- auto operator""_i8(ulonglong const value) → i8 constexpr
- Literal operator for i8.
-
auto operator""_ptrdiff(ulonglong value) → std::
ptrdiff_t constexpr - Literal operator for std::
ptrdiff_t. - auto operator""_pvoid(ulonglong const value) → void*
- Literal operator for
void*
. - auto operator""_u16(ulonglong const value) → u16 constexpr
- Literal operator for u16.
- auto operator""_u32(ulonglong const value) → u32 constexpr
- Literal operator for u32.
- auto operator""_u64(ulonglong const value) → u64 constexpr
- Literal operator for u64.
- auto operator""_u8(ulonglong const value) → u8 constexpr
- Literal operator for u8.
-
auto operator""_uuid(char const* str,
std::
size_t const size) → uuid constexpr - Literal operator for the uuid.
-
auto operator""_version(char const* str,
std::
size_t length) → version constexpr - Version literal operator.
Function documentation
i16 rll:: literals:: operator""_i16(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for i16.
i32 rll:: literals:: operator""_i32(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for i32.
i64 rll:: literals:: operator""_i64(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for i64.
i8 rll:: literals:: operator""_i8(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for i8.
std:: ptrdiff_t rll:: literals:: operator""_ptrdiff(ulonglong value) constexpr
#include <rll/stdint.h>
Literal operator for std::
void* rll:: literals:: operator""_pvoid(ulonglong const value)
#include <rll/stdint.h>
Literal operator for void*
.
u16 rll:: literals:: operator""_u16(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for u16.
u32 rll:: literals:: operator""_u32(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for u32.
u64 rll:: literals:: operator""_u64(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for u64.
u8 rll:: literals:: operator""_u8(ulonglong const value) constexpr
#include <rll/stdint.h>
Literal operator for u8.
uuid rll:: literals:: operator""_uuid(char const* str,
std:: size_t const size) private constexpr
#include <rll/uuid.h>
Literal operator for the uuid.
Parameters | |
---|---|
str | String representation of the uuid. |
size | Size of the string. |
Returns | uuid object. |
version rll:: literals:: operator""_version(char const* str,
std:: size_t length) constexpr
#include <rll/global/semver.h>
Version literal operator.
Creates a version from a string literal at compile time.
Example usage:
using namespace rll::literals; auto constexpr v = "1.0.0"_version; static_assert(v == rll::version(1, 0, 0));