Skip to main content

type_traits Namespace

Type trait utilities and metaprogramming support for the µTest++ testing framework. More...

Definition

namespace micro_os_plus::micro_test_plus::type_traits { ... }

Classes Index

structfloating_point_constant<T, N, D, Size, P>

Struct template representing a generic floating point constant with custom size and precision. More...

structfunction_traits<R(*)(Args_T...)>

Struct template specialisation for extracting function traits from function pointer types. More...

structfunction_traits<R(Args_T...)>

Struct template specialisation for extracting function traits from plain function types. More...

structfunction_traits<R(T::*)(Args_T...) const>

Struct template specialisation for extracting function traits from const member function types. More...

structfunction_traits<R(T::*)(Args_T...)>

Struct template specialisation for extracting function traits from non-const member function types. More...

structgenuine_integral_value<T>

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

structidentity<T, Extra>

Struct template for compile-time type identity. More...

structintegral_constant<N>

Struct template representing a generic integral constant. More...

structlist<Types>

Struct template representing a compile-time type list. More...

structop

Empty base struct for all operator types. More...

structvalue<T>

Struct template representing a generic value, accessible via a getter. More...

structvalue<T>

Struct template representing a floating point value with precision control. More...

structvalue_base_<T>

Base struct template providing common storage and accessors for runtime value-wrapper types. More...

Concepts Index

conceptany_op

C++20 concept satisfied when at least one of two types derives from op. More...

conceptcheckable

C++20 concept satisfied when a type can be used as a test expression in expect() or assume(). More...

conceptcontainer_like

C++20 concept satisfied when T provides both begin() and end() member functions. More...

concepthas_epsilon

C++20 concept satisfied when T provides an epsilon member. More...

concepthas_npos

C++20 concept satisfied when T provides a npos member. More...

concepthas_value

C++20 concept satisfied when T provides a value member. More...

conceptis_floating_point

C++20 concept satisfied when T is a standard floating point type. More...

conceptis_op

C++20 concept satisfied when a type derives from op. More...

conceptprintable

C++20 concept satisfied when a type can be appended to the deferred reporter's output via operator<<. More...

Description

Type trait utilities and metaprogramming support for the µTest++ testing framework.

The type_traits namespace offers a comprehensive suite of type trait templates and metaprogramming utilities employed throughout the µTest++ framework.

This includes templates for function traits, type lists, identity, value wrappers, and compile-time checks for container types, floating point types, and type convertibility. It also provides generic integral and floating point constant wrappers, as well as C++20 concepts and requirements checking.

These utilities facilitate advanced template programming, type deduction, and compile-time introspection, supporting the flexible and type-safe design of the framework.

All definitions within this namespace are implemented in the include/micro-os-plus folder to maintain a structured and modular codebase.


Generated via doxygen2docusaurus 2.2.0 by Doxygen 1.17.0.