Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::StringLike Concept Reference

A concept for types that are string-like, i.e. More...

#include "donner/base/StringUtils.h"

Concept definition

template<typename T>
concept donner::StringLike = requires(T t, size_t i) {
{ t.size() } -> std::same_as<size_t>;
{ t.data() } -> details::IsCStr;
}
A concept for types that are string-like, i.e.
Definition StringUtils.h:29

Detailed Description

A concept for types that are string-like, i.e.

have a size() and data() method.

Template Parameters
Tstd::string-like type.