FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_concept::StringRepresentable Concept Reference

Concept for types that can be represented as a string. More...

#include <concept.hpp>

Concept definition

template<typename T>
Concept for numeric types (integral or floating-point)
Definition concept.hpp:389
Concept for types that support stream insertion (operator<<)
Definition concept.hpp:417
Concept for types that can construct a std::string.
Definition concept.hpp:365
Concept for types implicitly convertible to std::string.
Definition concept.hpp:351
Concept for types that can be represented as a string.
Definition concept.hpp:442

Detailed Description

Concept for types that can be represented as a string.

Template Parameters
TThe type to check

Combines multiple string-representable properties: convertible to string, constructible as string, numeric, or stream insertable.

Example:

template<StringRepresentable T>
std::string to_string(const T& value) { ... }

Definition at line 442 of file concept.hpp.