micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::literals Namespace Reference

User Defined Literals (UDL). Use them to suffix constants and obtain specific explicit types, like 1_i. More...

Functions

constexpr auto operator""_b (const char *name, decltype(sizeof("")) size)
 Operator to convert to bool.
 
template<char... Cs>
constexpr auto operator""_c ()
 Operator to convert to char.
 
template<char... Cs>
constexpr auto operator""_d ()
 Operator to convert to double.
 
template<char... Cs>
constexpr auto operator""_f ()
 Operator to convert to float.
 
template<char... Cs>
constexpr auto operator""_i ()
 Operator to convert to int.
 
template<char... Cs>
constexpr auto operator""_i16 ()
 Operator to convert to int16_t.
 
template<char... Cs>
constexpr auto operator""_i32 ()
 Operator to convert to int32_t.
 
template<char... Cs>
constexpr auto operator""_i64 ()
 Operator to convert to int64_t.
 
template<char... Cs>
constexpr auto operator""_i8 ()
 Operator to convert to int8_t.
 
template<char... Cs>
constexpr auto operator""_l ()
 Operator to convert to long.
 
template<char... Cs>
constexpr auto operator""_ld ()
 Operator to convert to long double.
 
template<char... Cs>
constexpr auto operator""_ll ()
 Operator to convert to long long.
 
template<char... Cs>
constexpr auto operator""_s ()
 Operator to convert to short.
 
template<char... Cs>
constexpr auto operator""_sc ()
 Operator to convert to signed char.
 
template<char... Cs>
constexpr auto operator""_u ()
 Operator to convert to unsigned.
 
template<char... Cs>
constexpr auto operator""_u16 ()
 Operator to convert to uint16_t.
 
template<char... Cs>
constexpr auto operator""_u32 ()
 Operator to convert to uint32_t.
 
template<char... Cs>
constexpr auto operator""_u64 ()
 Operator to convert to uint64_t.
 
template<char... Cs>
constexpr auto operator""_u8 ()
 Operator to convert to uint8_t.
 
template<char... Cs>
constexpr auto operator""_uc ()
 Operator to convert to unsigned char.
 
template<char... Cs>
constexpr auto operator""_ul ()
 Operator to convert to unsigned long.
 
template<char... Cs>
constexpr auto operator""_ull ()
 Operator to convert to unsigned long long.
 
template<char... Cs>
constexpr auto operator""_us ()
 Operator to convert to unsigned short.
 

Detailed Description

User Defined Literals (UDL). Use them to suffix constants and obtain specific explicit types, like 1_i.