Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: net/quic/platform/impl/quic_str_cat_impl.h

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: sync Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/api/quic_str_cat_test.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_STR_CAT_IMPL_H_
6 #define NET_QUIC_PLATFORM_IMPL_QUIC_STR_CAT_IMPL_H_
7
8 #include <sstream>
9 #include <string>
10
11 namespace net {
12
13 template <typename... Args>
14 inline std::string QuicStrCatImpl(const Args&... args) {
15 std::ostringstream oss;
16 int dummy[] = {1, (oss << args, 0)...};
17 static_cast<void>(dummy);
18 return oss.str();
19 }
20
21 } // namespace net
22
23 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_STR_CAT_IMPL_H_
OLDNEW
« no previous file with comments | « net/quic/platform/api/quic_str_cat_test.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698