59 inline std::ostream& operator<<(std::ostream& os,
dialog_result value) {
return os <<
to_string(value, {{
dialog_result::none,
"none"}, {
dialog_result::ok,
"ok"}, {
dialog_result::cancel,
"cancel"}, {
dialog_result::abort,
"abort"}, {
dialog_result::retry,
"retry"}, {
dialog_result::ignore,
"ignore"}, {
dialog_result::yes,
"yes"}, {
dialog_result::no,
"no"}});}
60 inline std::wostream& operator<<(std::wostream& os,
dialog_result value) {
return os <<
to_string(value, {{
dialog_result::none, L
"none"}, {
dialog_result::ok, L
"ok"}, {
dialog_result::cancel, L
"cancel"}, {
dialog_result::abort, L
"abort"}, {
dialog_result::retry, L
"retry"}, {
dialog_result::ignore, L
"ignore"}, {
dialog_result::yes, L
"yes"}, {
dialog_result::no, L
"no"}});}
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition to_string.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::ustring class.