kblib 0.2.3
General utilities library for modern C++
kblib::literals Namespace Reference

Functions

template<char... Cs>
constexpr auto operator""_c ()
 
template<char... Cs>
constexpr auto operator""_cu ()
 
constexpr auto operator""_fnv32 (const char *str, std::size_t length) noexcept -> std::uint32_t
 A literal suffix that produces the FNV32a hash of a string literal. More...
 
constexpr auto operator""_fnv64 (const char *str, std::size_t length) noexcept -> std::uint64_t
 A literal suffix that produces the FNV64a hash of a string literal. More...
 
constexpr auto operator""_fnv32 (unsigned long long val) -> std::uint32_t
 
constexpr auto operator""_fnv64 (unsigned long long val) -> std::uint64_t
 
template<char... Cs>
constexpr auto operator""_vi ()
 

Function Documentation

◆ operator""_c()

template<char... Cs>
constexpr auto kblib::literals::operator""_c ( )
constexpr

Definition at line 230 of file convert.h.

◆ operator""_cu()

template<char... Cs>
constexpr auto kblib::literals::operator""_cu ( )
constexpr

Definition at line 235 of file convert.h.

◆ operator""_fnv32() [1/2]

constexpr auto kblib::literals::operator""_fnv32 ( const char *  str,
std::size_t  length 
) -> std::uint32_t
constexprnoexcept

A literal suffix that produces the FNV32a hash of a string literal.

Definition at line 261 of file hash.h.

◆ operator""_fnv32() [2/2]

constexpr auto kblib::literals::operator""_fnv32 ( unsigned long long  val) -> std::uint32_t
constexpr

Definition at line 277 of file hash.h.

◆ operator""_fnv64() [1/2]

constexpr auto kblib::literals::operator""_fnv64 ( const char *  str,
std::size_t  length 
) -> std::uint64_t
constexprnoexcept

A literal suffix that produces the FNV64a hash of a string literal.

Definition at line 270 of file hash.h.

◆ operator""_fnv64() [2/2]

constexpr auto kblib::literals::operator""_fnv64 ( unsigned long long  val) -> std::uint64_t
constexpr

Definition at line 284 of file hash.h.

◆ operator""_vi()

template<char... Cs>
constexpr auto kblib::literals::operator""_vi ( )
constexpr

Definition at line 156 of file variant.h.