Show how to use format xtd::format class with associative containers.
#include <xtd/console>
#include <xtd/environment>
#include <xtd/string>
auto main() -> int {
console::out << string::format("{}", std::set<int> {1, 2, 3, 4}) << environment::new_line;
console::out << string::format("{}", std::multiset<int> {1, 2, 3, 4}) << environment::new_line;
console::out << string::format("{}", std::map<int, string> {{1, "one"}, {2, "two"}, {3, "three"}, {4, "four"}}) << environment::new_line;
console::out << string::format("{}", std::multimap<int, string> {{1, "one"}, {2, "two"}, {3, "three"}, {4, "four"}}) << environment::new_line;
}
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10