simstr 1.7.3
Yet another strings library
 
Loading...
Searching...
No Matches
simstr::StrExpr Concept Reference

Concept of "String Expressions". More...

#include <strexpr.h>

Concept definition

template<typename A>
concept simstr::StrExpr = requires(const A& a) {
typename std::remove_cvref_t<A>::symb_type;
{ a.length() } -> std::convertible_to<size_t>;
{ a.place(std::declval<typename std::remove_cvref_t<A>::symb_type*>()) } -> std::same_as<typename std::remove_cvref_t<A>::symb_type*>;
}
Concept of "String Expressions".
Definition strexpr.h:507

Detailed Description

Concept of "String Expressions".

This is a concept that checks whether a type is a "string expression".