Skip to main content

The genuine_integral_value Struct Template Reference

Struct template representing a genuine integral value. More...

Declaration

template <class T>
struct micro_os_plus::micro_test_plus::type_traits::genuine_integral_value<T>

Included Headers

Public Member Typedefs Index

template <class T>
usingvalue_type = T

The type of the encapsulated value. More...

Public Constructors Index

template <class T>
constexprgenuine_integral_value (const T &_value)

Constructs a genuine_integral_value with the specified value. More...

Public Operators Index

template <class T>
constexproperator T () const

Explicit conversion operator to the underlying value type. More...

Public Member Functions Index

template <class T>
constexpr auto get () const -> decltype(auto)

Getter for the encapsulated value. More...

Public Member Attributes Index

template <class T>
Tvalue_ {}

The encapsulated integral value. More...

Description

Struct template representing a genuine integral value.

Template Parameters
TThe type of the integral value.

The genuine_integral_value struct template encapsulates a runtime integral value, providing a consistent interface for value access and conversion. It inherits from op to enable unified handling within the µTest++ framework's type traits and metaprogramming utilities.

This struct template exposes the value via a member variable, a getter method, and an explicit conversion operator. It is intended for use cases where a value must be wrapped and treated generically within the framework, supporting advanced template metaprogramming and type introspection.

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

Public Member Typedefs

value_type

template <class T>
using micro_os_plus::micro_test_plus::type_traits::genuine_integral_value< T >::value_type = T

The type of the encapsulated value.

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

Public Constructors

genuine_integral_value()

template <class T>
micro_os_plus::micro_test_plus::type_traits::genuine_integral_value< T >::genuine_integral_value (const T & _value)
inlineconstexpr

Constructs a genuine_integral_value with the specified value.

Parameters
_valueThe integral value to be stored.

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

Public Operators

operator T()

template <class T>
micro_os_plus::micro_test_plus::type_traits::genuine_integral_value< T >::operator T () const
inlineexplicitnodiscardconstexpr

Explicit conversion operator to the underlying value type.

Returns

The stored value as type T.

Allows explicit conversion to the encapsulated value.

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

Public Member Functions

get()

template <class T>
decltype(auto) micro_os_plus::micro_test_plus::type_traits::genuine_integral_value< T >::get () const
inlinenodiscardconstexpr

Getter for the encapsulated value.

Returns

The value of type T.

Returns the stored integral value.

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

Public Member Attributes

value_

template <class T>
T micro_os_plus::micro_test_plus::type_traits::genuine_integral_value< T >::value_ {}

The encapsulated integral value.

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


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


Generated via docusaurus-plugin-doxygen by Doxygen 1.14.0.