OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ | 5 #ifndef NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ |
6 #define NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ | 6 #define NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ |
7 | 7 |
| 8 #include <string> |
| 9 #include <utility> |
| 10 |
8 #include "net/quic/platform/impl/quic_str_cat_impl.h" | 11 #include "net/quic/platform/impl/quic_str_cat_impl.h" |
9 | 12 |
10 namespace net { | 13 namespace net { |
11 | 14 |
12 template <typename... Args> | 15 template <typename... Args> |
13 inline std::string QuicStrCat(const Args&... args) { | 16 inline std::string QuicStrCat(const Args&... args) { |
14 return std::move(QuicStrCatImpl(std::forward<const Args&>(args)...)); | 17 return QuicStrCatImpl(std::forward<const Args&>(args)...); |
15 } | 18 } |
16 | 19 |
17 template <typename... Args> | 20 template <typename... Args> |
18 inline std::string QuicStringPrintf(const Args&... args) { | 21 inline std::string QuicStringPrintf(const Args&... args) { |
19 return std::move(QuicStringPrintfImpl(std::forward<const Args&>(args)...)); | 22 return QuicStringPrintfImpl(std::forward<const Args&>(args)...); |
20 } | 23 } |
21 | 24 |
22 } // namespace net | 25 } // namespace net |
23 | 26 |
24 #endif // NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ | 27 #endif // NET_QUIC_PLATFORM_API_QUIC_STR_CAT_H_ |
OLD | NEW |