xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::tparam Namespace Reference

Template parameters. More...

Namespaces

namespace  operators
 Inline namespace contaning all the symbols from xentara::utils::string::operators.
 

Classes

struct  BasicString
 A string literal that can be used as a template parameter. More...
 
struct  String
 A string literal of type char More...
 
struct  U16String
 A string literal of type char16_t More...
 
struct  U32String
 A string literal of type char32_t More...
 
struct  U8String
 A string literal of type char8_t More...
 
struct  Uuid
 A UUID that can be used as a template parameter. More...
 
struct  WString
 A string literal of type wchar_t More...
 

Functions

template<typename Char , std::size_t kDataSize>
requires (kDataSize > 0)
 BasicString (const Char(&)[kDataSize]) -> BasicString< Char, kDataSize - 1 >
 deduction guide for string literals
 
template<std::size_t kDataSize>
requires (kDataSize > 0)
 String (const char(&)[kDataSize]) -> String< kDataSize - 1 >
 deduction guide for string literals of type char
 
template<std::size_t kDataSize>
requires (kDataSize > 0)
 U16String (const char16_t(&)[kDataSize]) -> U16String< kDataSize - 1 >
 deduction guide for string literals of type char16_t
 
template<std::size_t kDataSize>
requires (kDataSize > 0)
 U32String (const char32_t(&)[kDataSize]) -> U32String< kDataSize - 1 >
 deduction guide for string literals of type char32_t
 
template<std::size_t kDataSize>
requires (kDataSize > 0)
 U8String (const char8_t(&)[kDataSize]) -> U8String< kDataSize - 1 >
 deduction guide for string literals of type char8_t
 
template<std::size_t kDataSize>
requires (kDataSize > 0)
 WString (const wchar_t(&)[kDataSize]) -> WString< kDataSize - 1 >
 deduction guide for string literals of type wchar_t
 

Detailed Description

Template parameters.

This namespace contains specialized types suitable to use as non-type template parameters, e.g. to allow literal strings to be used as template parameters.

Function Documentation

◆ BasicString()

template<typename Char , std::size_t kDataSize>
requires (kDataSize > 0)
xentara::utils::tparam::BasicString ( const   Char(&)[kDataSize]) -> BasicString< Char, kDataSize - 1 >

deduction guide for string literals

◆ String()

template<std::size_t kDataSize>
requires (kDataSize > 0)
xentara::utils::tparam::String ( const   char(&)[kDataSize]) -> String< kDataSize - 1 >

deduction guide for string literals of type char

◆ U16String()

template<std::size_t kDataSize>
requires (kDataSize > 0)
xentara::utils::tparam::U16String ( const   char16_t(&)[kDataSize]) -> U16String< kDataSize - 1 >

deduction guide for string literals of type char16_t

◆ U32String()

template<std::size_t kDataSize>
requires (kDataSize > 0)
xentara::utils::tparam::U32String ( const   char32_t(&)[kDataSize]) -> U32String< kDataSize - 1 >

deduction guide for string literals of type char32_t

◆ U8String()

template<std::size_t kDataSize>
requires (kDataSize > 0)
xentara::utils::tparam::U8String ( const   char8_t(&)[kDataSize]) -> U8String< kDataSize - 1 >

deduction guide for string literals of type char8_t

◆ WString()

template<std::size_t kDataSize>
requires (kDataSize > 0)
xentara::utils::tparam::WString ( const   wchar_t(&)[kDataSize]) -> WString< kDataSize - 1 >

deduction guide for string literals of type wchar_t