xtd 0.2.0
formatter.hpp
Go to the documentation of this file.
1
4#pragma once
6
8namespace xtd {
10
27 template <class type_t>
28 struct formatter {
29 xtd::string operator()(const type_t& value, const xtd::string& format, const std::locale& locale) {
30 return __polymorphic_formatter__(value, format, locale, std::is_polymorphic<type_t>());
31 }
32 };
33}
Contains polymorphic_formatter class.
Represents text as a sequence of character units.
Definition basic_string.hpp:71
xtd::string format(const xtd::string &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition format.hpp:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Provides the base class to format any object.
Definition formatter.hpp:28