Debian Codegraph @

src/mpt/format/concat.hpp

raw
1 /* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
2
3 #ifndef MPT_FORMAT_CONCAT_HPP
4 #define MPT_FORMAT_CONCAT_HPP
5
6
7
8 #include "mpt/base/namespace.hpp"
9 #include "mpt/format/default_formatter.hpp"
10
11 #include <utility>
12
13
14
15 namespace mpt {
16 inline namespace MPT_INLINE_NS {
17
18
19
20 template <typename Tstring, typename... Ts>
21 inline Tstring concat(Ts &&... xs) {
22 return (default_formatter::template format<Tstring>(std::forward<Ts>(xs)) + ...);
23 }
24
25
26
27 } // namespace MPT_INLINE_NS
28 } // namespace mpt
29
30
31
32 #endif // MPT_FORMAT_CONCAT_HPP