micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
literals.h File Reference
#include "type-traits.h"
#include "math.h"
#include <cstdint>

Go to the source code of this file.

Classes

struct  micro_os_plus::micro_test_plus::_t< T >
 
struct  micro_os_plus::micro_test_plus::to_t< T >
 Template for wrapping any other type. More...
 

Namespaces

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

Typedefs

using micro_os_plus::micro_test_plus::_b = type_traits::value<bool>
 
using micro_os_plus::micro_test_plus::_c = type_traits::value<char>
 
using micro_os_plus::micro_test_plus::_d = type_traits::value<double>
 
using micro_os_plus::micro_test_plus::_f = type_traits::value<float>
 
using micro_os_plus::micro_test_plus::_i = type_traits::value<int>
 
using micro_os_plus::micro_test_plus::_i16 = type_traits::value<std::int16_t>
 
using micro_os_plus::micro_test_plus::_i32 = type_traits::value<std::int32_t>
 
using micro_os_plus::micro_test_plus::_i64 = type_traits::value<std::int64_t>
 
using micro_os_plus::micro_test_plus::_i8 = type_traits::value<std::int8_t>
 
using micro_os_plus::micro_test_plus::_l = type_traits::value<long>
 
using micro_os_plus::micro_test_plus::_ld = type_traits::value<long double>
 
using micro_os_plus::micro_test_plus::_ll = type_traits::value<long long>
 
using micro_os_plus::micro_test_plus::_s = type_traits::value<short>
 
using micro_os_plus::micro_test_plus::_sc = type_traits::value<signed char>
 
using micro_os_plus::micro_test_plus::_u = type_traits::value<unsigned>
 
using micro_os_plus::micro_test_plus::_u16 = type_traits::value<std::uint16_t>
 
using micro_os_plus::micro_test_plus::_u32 = type_traits::value<std::uint32_t>
 
using micro_os_plus::micro_test_plus::_u64 = type_traits::value<std::uint64_t>
 
using micro_os_plus::micro_test_plus::_u8 = type_traits::value<std::uint8_t>
 
using micro_os_plus::micro_test_plus::_uc = type_traits::value<unsigned char>
 
using micro_os_plus::micro_test_plus::_ul = type_traits::value<unsigned long>
 
using micro_os_plus::micro_test_plus::_ull = type_traits::value<unsigned long long>
 
using micro_os_plus::micro_test_plus::_us = type_traits::value<unsigned short>
 
using micro_os_plus::micro_test_plus::to_b = type_traits::value<bool>
 
using micro_os_plus::micro_test_plus::to_c = type_traits::value<char>
 
using micro_os_plus::micro_test_plus::to_d = type_traits::value<double>
 
using micro_os_plus::micro_test_plus::to_f = type_traits::value<float>
 
using micro_os_plus::micro_test_plus::to_i = type_traits::value<int>
 
using micro_os_plus::micro_test_plus::to_i16 = type_traits::value<std::int16_t>
 
using micro_os_plus::micro_test_plus::to_i32 = type_traits::value<std::int32_t>
 
using micro_os_plus::micro_test_plus::to_i64 = type_traits::value<std::int64_t>
 
using micro_os_plus::micro_test_plus::to_i8 = type_traits::value<std::int8_t>
 
using micro_os_plus::micro_test_plus::to_l = type_traits::value<long>
 
using micro_os_plus::micro_test_plus::to_ld = type_traits::value<long double>
 
using micro_os_plus::micro_test_plus::to_ll = type_traits::value<long long>
 
using micro_os_plus::micro_test_plus::to_s = type_traits::value<short>
 
using micro_os_plus::micro_test_plus::to_sc = type_traits::value<signed char>
 
using micro_os_plus::micro_test_plus::to_u = type_traits::value<unsigned>
 
using micro_os_plus::micro_test_plus::to_u16 = type_traits::value<std::uint16_t>
 
using micro_os_plus::micro_test_plus::to_u32 = type_traits::value<std::uint32_t>
 
using micro_os_plus::micro_test_plus::to_u64 = type_traits::value<std::uint64_t>
 
using micro_os_plus::micro_test_plus::to_u8 = type_traits::value<std::uint8_t>
 
using micro_os_plus::micro_test_plus::to_uc = type_traits::value<unsigned char>
 
using micro_os_plus::micro_test_plus::to_ul = type_traits::value<unsigned long>
 
using micro_os_plus::micro_test_plus::to_ull = type_traits::value<unsigned long long>
 
using micro_os_plus::micro_test_plus::to_us = type_traits::value<unsigned short>
 

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.