Skip to main content

The function_traits Struct Template Reference

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

Declaration

template <class R, class T, class... Args_T>
struct micro_os_plus::micro_test_plus::type_traits::function_traits<R(T::*)(Args_T...) const>

Included Headers

Public Member Typedefs Index

template <class R, class T, class... Args_T>
usingargs = list< Args_T... >

Type list of all argument types. More...

template <class R, class T, class... Args_T>
usingresult_type = R

The return type of the const member function. More...

Description

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

Template Parameters
RThe return type of the const member function.
TThe class type to which the member function belongs.
...Args_TThe argument types of the const member function.

This specialisation of the function_traits struct template provides compile-time introspection for const member function types. It exposes the return type and argument types of a const member function, enabling advanced template metaprogramming and type deduction within the µTest++ framework.

The result_type member defines the return type of the const member function, while the args member is a type list containing all argument types.

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

Public Member Typedefs

args

template <class R, class T, class... Args_T>
using micro_os_plus::micro_test_plus::type_traits::function_traits< R(T::*)(Args_T...) const >::args = list<Args_T...>

Type list of all argument types.

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

result_type

template <class R, class T, class... Args_T>
using micro_os_plus::micro_test_plus::type_traits::function_traits< R(T::*)(Args_T...) const >::result_type = R

The return type of the const member function.

Definition at line 309 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.