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.
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
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Provides the base class to format any object.
Definition formatter.hpp:28