36 inline std::ostream& operator<<(std::ostream& os,
close_reason value) {
return os <<
to_string(value, {{
close_reason::none,
"none"}, {
close_reason::windows_shut_down,
"windows_shut_down"}, {
close_reason::mdi_form_closing,
"mdi_form_closing"}, {
close_reason::user_closing,
"user_closing"}, {
close_reason::task_manager_closing,
"task_manager_closing"}, {
close_reason::form_owner_closing,
"form_owner_closing"}, {
close_reason::application_exit_call,
"application_exit_call"}});}
37 inline std::wostream& operator<<(std::wostream& os,
close_reason value) {
return os <<
to_string(value, {{
close_reason::none, L
"none"}, {
close_reason::windows_shut_down, L
"windows_shut_down"}, {
close_reason::mdi_form_closing, L
"mdi_form_closing"}, {
close_reason::user_closing, L
"user_closing"}, {
close_reason::task_manager_closing, L
"task_manager_closing"}, {
close_reason::form_owner_closing, L
"form_owner_closing"}, {
close_reason::application_exit_call, L
"application_exit_call"}});}
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.