5#if !defined(__XTD_CORE_INTERNAL__)
6#error "Do not include this file: Internal use only"
15[[nodiscard]]
auto __enum_to_string__(enum_t value)
noexcept -> std::string;
17template<
class char_t,
class value_t>
18[[nodiscard]]
inline auto __enum_formatter(
const std::basic_string<char_t>& format, value_t value,
const std::locale& loc) -> std::basic_string<char_t> {
20 if (fmt.empty()) fmt = {
'G'};
30 case 'X':
return __numeric_formatter(fmt,
static_cast<long long int>(value), loc);
32 case 'G':
return __enum_to_string__(value);
static auto throws(xtd::helpers::exception_case exception_case, const source_location &location=source_location::current()) -> void
Throws an exption with specified exception case.
@ format
The format is not valid.
Definition exception_case.hpp:51
Contains xtd::helpers::throw_helper class.