micro-test-plus 6.0.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::detail::string_like Concept Reference

Concept satisfied when T is a string, convertible to a std::basic_string_view of a character type. More...

#include <extension.h>

Concept definition

template<class T>
concept string_like = std::convertible_to<const T&, std::basic_string_view<char>>
or std::convertible_to<const T&, std::basic_string_view<wchar_t>>
or std::convertible_to<const T&, std::basic_string_view<char8_t>>
or std::convertible_to<const T&, std::basic_string_view<char16_t>>
or std::convertible_to<const T&, std::basic_string_view<char32_t>>
Concept satisfied when T is a string, convertible to a std::basic_string_view of a character type.
Definition extension.h:554

Detailed Description

Template Parameters
TThe type to be checked.

The string_like concept is satisfied when a const object of type T is implicitly convertible to a std::basic_string_view of char, wchar_t, char8_t, char16_t, or char32_t, as the standard strings and the string views are. It is used to detect the strings, which the formatter writes as text, not element by element (see formattable_range). A container that has only a member named npos, or that is not convertible, is not a string.

Definition at line 553 of file extension.h.