Debian Codegraph @

src/mpt/format/default_formatter.hpp

raw
1 /* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
2
3 #ifndef MPT_FORMAT_DEFAULT_FORMATTER_HPP
4 #define MPT_FORMAT_DEFAULT_FORMATTER_HPP
5
6
7
8 #include "mpt/base/namespace.hpp"
9 #include "mpt/format/default_floatingpoint.hpp"
10 #include "mpt/format/default_integer.hpp"
11 #include "mpt/format/default_string.hpp"
12
13
14
15 namespace mpt {
16 inline namespace MPT_INLINE_NS {
17
18
19
20 struct default_formatter {
21 template <typename Tstring, typename T>
22 static inline Tstring format(const T & value) {
23 using namespace mpt;
24 return format_value_default<Tstring>(value);
25 }
26 };
27
28
29
30 } // namespace MPT_INLINE_NS
31 } // namespace mpt
32
33
34
35 #endif // MPT_FORMAT_DEFAULT_FORMATTER_HPP