Show how to use format xtd::format class with null pointers.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/format>
auto main() -> int {
console::out << format("{}", null) << environment::new_line;
console::out << format(
"{}",
null_ptr {}) << environment::new_line;
console::out << format("{}", nullptr) << environment::new_line;
console::out << format("{}", std::nullptr_t {}) << environment::new_line;
console::out << format("{}", NULL) << environment::new_line;
console::out << format("{}", 0) << environment::new_line;
}
std::nullptr_t null_ptr
Represents the null_opt alias on std::nullptr_t.
Definition null_ptr.hpp:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10