Skip to main content

has_value Concept

Deprecated concept satisfied when T has a member named value. More...

Definition​

template <class T>
concept micro_os_plus::micro_test_plus::type_traits::has_value = requires (const T& t) { t.value; }

Description​

Deprecated concept satisfied when T has a member named value.

Template Parameters
T

The type to be checked.

Restored with its v5.0.1 definition, satisfied by any type with a member named value, static or not, including the application types, so that the v5.0.1 code that uses it keeps its result. It is not the concept used by the framework, detail::has_value, which is satisfied only by the framework types, so that the application types with a value member are compared as values.

Deprecated

there is no replacement; the concept used by the framework is internal (since 6.0.0)

Definition at line 2558 of file deprecated.h.

  template<class T>
  concept has_value = requires (const T& t) { t.value; }

Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.