kaycxx-cli
C++ CLI library
Loading...
Searching...
No Matches
kaycxx::cli::from_chars_parseable Concept Reference

Checks whether a type can be parsed with std::from_chars. More...

#include <kaycxx/cli/parse_value.hpp>

Concept definition

template<typename T>
concept kaycxx::cli::from_chars_parseable = requires(std::string_view text, T& value) {
requires std::default_initializable<T>;
{ std::from_chars(text.data(), text.data() + text.size(), value) } -> std::same_as<std::from_chars_result>;
}
Checks whether a type can be parsed with std::from_chars.
Definition parse_value.hpp:29

Detailed Description

Checks whether a type can be parsed with std::from_chars.

Template Parameters
TValue type to check.