gz-cpp-util 1.3
A c++20 library containing various utilities
gz::ConstructibleFromString Concept Reference

Any type where fromString(string) exists and returns T. More...

#include <from_string.hpp>

Concept definition

template<typename T>
concept gz::ConstructibleFromString = requires(const std::string& s) {
{ fromString<T>(s) } -> std::same_as<T>;
}
Any type where fromString(string) exists and returns T.
Definition: from_string.hpp:114

Detailed Description

Any type where fromString(string) exists and returns T.

Note
The function only has to exist, it does not have to be noexcept!