micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
|
Literals and wrappers. More...
Classes | |
struct | micro_os_plus::micro_test_plus::to_t< T > |
Template for wrapping any other type. More... | |
Functions | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_b (const char *name, decltype(sizeof("")) size) |
Operator to convert to bool . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_c () |
Operator to convert to char . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_d () |
Operator to convert to double . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_f () |
Operator to convert to float . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_i () |
Operator to convert to int . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_i16 () |
Operator to convert to int16_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_i32 () |
Operator to convert to int32_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_i64 () |
Operator to convert to int64_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_i8 () |
Operator to convert to int8_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_l () |
Operator to convert to long . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_ld () |
Operator to convert to long double . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_ll () |
Operator to convert to long long . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_s () |
Operator to convert to short . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_sc () |
Operator to convert to signed char . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_u () |
Operator to convert to unsigned . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_u16 () |
Operator to convert to uint16_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_u32 () |
Operator to convert to uint32_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_u64 () |
Operator to convert to uint64_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_u8 () |
Operator to convert to uint8_t . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_uc () |
Operator to convert to unsigned char . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_ul () |
Operator to convert to unsigned long . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_ull () |
Operator to convert to unsigned long long . | |
template<char... Cs> | |
constexpr auto | micro_os_plus::micro_test_plus::literals::operator""_us () |
Operator to convert to unsigned short . | |
Literals and wrappers.
For converting constants to recognised typed operands, the framework defines several literal operators in the separate namespace literals
.
Similarly, for dynamic values, there are wrappers that convert them to recognised types.
using micro_os_plus::micro_test_plus::to_b = type_traits::value<bool> |
Definition at line 430 of file literals.h.
using micro_os_plus::micro_test_plus::to_c = type_traits::value<char> |
Definition at line 432 of file literals.h.
using micro_os_plus::micro_test_plus::to_d = type_traits::value<double> |
Definition at line 472 of file literals.h.
using micro_os_plus::micro_test_plus::to_f = type_traits::value<float> |
Definition at line 470 of file literals.h.
using micro_os_plus::micro_test_plus::to_i = type_traits::value<int> |
Definition at line 438 of file literals.h.
using micro_os_plus::micro_test_plus::to_i16 = type_traits::value<std::int16_t> |
Definition at line 456 of file literals.h.
using micro_os_plus::micro_test_plus::to_i32 = type_traits::value<std::int32_t> |
Definition at line 458 of file literals.h.
using micro_os_plus::micro_test_plus::to_i64 = type_traits::value<std::int64_t> |
Definition at line 460 of file literals.h.
using micro_os_plus::micro_test_plus::to_i8 = type_traits::value<std::int8_t> |
Definition at line 454 of file literals.h.
using micro_os_plus::micro_test_plus::to_l = type_traits::value<long> |
Definition at line 440 of file literals.h.
using micro_os_plus::micro_test_plus::to_ld = type_traits::value<long double> |
Definition at line 474 of file literals.h.
using micro_os_plus::micro_test_plus::to_ll = type_traits::value<long long> |
Definition at line 442 of file literals.h.
using micro_os_plus::micro_test_plus::to_s = type_traits::value<short> |
Definition at line 436 of file literals.h.
using micro_os_plus::micro_test_plus::to_sc = type_traits::value<signed char> |
Definition at line 434 of file literals.h.
using micro_os_plus::micro_test_plus::to_u = type_traits::value<unsigned> |
Definition at line 444 of file literals.h.
using micro_os_plus::micro_test_plus::to_u16 = type_traits::value<std::uint16_t> |
Definition at line 464 of file literals.h.
using micro_os_plus::micro_test_plus::to_u32 = type_traits::value<std::uint32_t> |
Definition at line 466 of file literals.h.
using micro_os_plus::micro_test_plus::to_u64 = type_traits::value<std::uint64_t> |
Definition at line 468 of file literals.h.
using micro_os_plus::micro_test_plus::to_u8 = type_traits::value<std::uint8_t> |
Definition at line 462 of file literals.h.
using micro_os_plus::micro_test_plus::to_uc = type_traits::value<unsigned char> |
Definition at line 446 of file literals.h.
using micro_os_plus::micro_test_plus::to_ul = type_traits::value<unsigned long> |
Definition at line 450 of file literals.h.
using micro_os_plus::micro_test_plus::to_ull = type_traits::value<unsigned long long> |
Definition at line 452 of file literals.h.
using micro_os_plus::micro_test_plus::to_us = type_traits::value<unsigned short> |
Definition at line 448 of file literals.h.
|
constexpr |
Operator to convert to bool
.
Definition at line 320 of file literals.h.
|
constexpr |
Operator to convert to char
.
Definition at line 79 of file literals.h.
|
constexpr |
Operator to convert to double
.
Definition at line 293 of file literals.h.
|
constexpr |
Operator to convert to float
.
Definition at line 279 of file literals.h.
|
constexpr |
Operator to convert to int
.
Definition at line 57 of file literals.h.
|
constexpr |
Operator to convert to int16_t
.
Definition at line 195 of file literals.h.
|
constexpr |
Operator to convert to int32_t
.
Definition at line 207 of file literals.h.
|
constexpr |
Operator to convert to int64_t
.
Definition at line 219 of file literals.h.
|
constexpr |
Operator to convert to int8_t
.
Definition at line 183 of file literals.h.
|
constexpr |
Operator to convert to long
.
Definition at line 102 of file literals.h.
|
constexpr |
Operator to convert to long double
.
Definition at line 307 of file literals.h.
|
constexpr |
Operator to convert to long long
.
Definition at line 113 of file literals.h.
|
constexpr |
Operator to convert to short
.
Definition at line 68 of file literals.h.
|
constexpr |
Operator to convert to signed char
.
Definition at line 90 of file literals.h.
|
constexpr |
Operator to convert to unsigned
.
Definition at line 124 of file literals.h.
|
constexpr |
Operator to convert to uint16_t
.
Definition at line 243 of file literals.h.
|
constexpr |
Operator to convert to uint32_t
.
Definition at line 255 of file literals.h.
|
constexpr |
Operator to convert to uint64_t
.
Definition at line 267 of file literals.h.
|
constexpr |
Operator to convert to uint8_t
.
Definition at line 231 of file literals.h.
|
constexpr |
Operator to convert to unsigned char
.
Definition at line 135 of file literals.h.
|
constexpr |
Operator to convert to unsigned long
.
Definition at line 159 of file literals.h.
|
constexpr |
Operator to convert to unsigned long long
.
Definition at line 171 of file literals.h.
|
constexpr |
Operator to convert to unsigned short
.
Definition at line 147 of file literals.h.