Skip to main content

character Concept

Concept satisfied by the character types. More...

Definition​

template <class T>
concept micro_os_plus::micro_test_plus::detail::character = std::is_same_v<std::remove_cv_t<T>, char>
                        or std::is_same_v<std::remove_cv_t<T>, wchar_t>
                        or std::is_same_v<std::remove_cv_t<T>, char8_t>
                        or std::is_same_v<std::remove_cv_t<T>, char16_t>
                        or std::is_same_v<std::remove_cv_t<T>, char32_t>

Description​

Concept satisfied by the character types.

The character concept is satisfied when the type, ignoring the cv-qualifiers, is one of char, wchar_t, char8_t, char16_t, or char32_t. The comparators compare the arrays and the pointers of these types as strings (see basic_c_string); signed char and unsigned char are not characters, but bytes.

Template Parameters
T

The type to check.

Definition at line 1631 of file detail.h.

  template<class T>
  concept character = std::is_same_v<std::remove_cv_t<T>, char>
  or std::is_same_v<std::remove_cv_t<T>, wchar_t>
  or std::is_same_v<std::remove_cv_t<T>, char8_t>
  or std::is_same_v<std::remove_cv_t<T>, char16_t>
  or std::is_same_v<std::remove_cv_t<T>, char32_t>

Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.