conststr 0.2.1
Loading...
Searching...
No Matches
conststr::charutils::char_like Concept Reference

This concept is satisfied if T is a char-like type. More...

#include <conststr.hpp>

Concept definition

template<typename T>
concept conststr::charutils::char_like = std::is_trivial_v<T> && std::equality_comparable<T> &&
std::three_way_comparable<T> &&
requires { T('\0') + T('\x20') - T('\x20'); }
This concept is satisfied if T is a char-like type.
Definition: conststr.hpp:354

Detailed Description

This concept is satisfied if T is a char-like type.

It requires that the type must be a trivial type, can be compared in three-way, and can be converted from char value.

Template Parameters
Tany char-like type