mimic++ v5
Loading...
Searching...
No Matches
mimicpp::string Concept Reference

Determines, whether the given type can be used as a string-type. More...

#include <String.hpp>

Concept definition

template<typename T>
concept mimicpp::string = requires {
requires std::regular<string_char_t<T>>;
requires std::ranges::contiguous_range<string_view_t<T>>;
requires std::ranges::sized_range<string_view_t<T>>;
requires std::ranges::borrowed_range<string_view_t<T>>;
requires std::same_as<
std::ranges::range_value_t<string_view_t<T>>>;
}
Determines, whether the given type can be used as a string-type.
Definition String.hpp:335
constexpr bool is_character_v
Convenience boolean-constant to the result of is_character trait.
Definition String.hpp:113
typename string_traits< std::remove_cvref_t< T > >::char_t string_char_t
Computes the character type for the given string.
Definition String.hpp:260

Detailed Description

Determines, whether the given type can be used as a string-type.