micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::to_t< T > Struct Template Reference

Template for wrapping any other type. More...

#include <micro-os-plus/micro-test-plus.h>

+ Inheritance diagram for micro_os_plus::micro_test_plus::to_t< T >:

Public Types

using value_type = T
 

Public Member Functions

constexpr to_t (const T &t)
 Constructor.
 
constexpr decltype(auto) get () const
 
constexpr operator T () const
 

Public Attributes

value_ {}
 

Detailed Description

template<class T>
struct micro_os_plus::micro_test_plus::to_t< T >

Template for wrapping any other type.

Since
3.2.0

A public class used only to convert the type.

Definition at line 490 of file literals.h.

Member Typedef Documentation

◆ value_type

template<class T , class = int>
using micro_os_plus::micro_test_plus::type_traits::value< T, class >::value_type = T
inherited

Definition at line 309 of file type-traits.h.

Constructor & Destructor Documentation

◆ to_t()

template<class T >
constexpr micro_os_plus::micro_test_plus::to_t< T >::to_t ( const T & t)
inlineexplicitconstexpr

Constructor.

Definition at line 493 of file literals.h.

Member Function Documentation

◆ get()

template<class T , class = int>
constexpr decltype(auto) micro_os_plus::micro_test_plus::type_traits::value< T, class >::get ( ) const
inlineconstexprinherited

Definition at line 322 of file type-traits.h.

◆ operator T()

template<class T , class = int>
constexpr micro_os_plus::micro_test_plus::type_traits::value< T, class >::operator T ( ) const
inlineexplicitconstexprinherited

Definition at line 316 of file type-traits.h.

Member Data Documentation

◆ value_

template<class T , class = int>
T micro_os_plus::micro_test_plus::type_traits::value< T, class >::value_ {}
inherited

Definition at line 327 of file type-traits.h.


The documentation for this struct was generated from the following file: