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

Side by Side Diff: webrtc/system_wrappers/include/stl_util.h

Issue 1425693005: system_wrappers: Fix include header guards. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 // Borrowed from Chromium's src/base/stl_util.h. 11 // Borrowed from Chromium's src/base/stl_util.h.
12 12
13 #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STL_UTIL_H_ 13 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STL_UTIL_H_
14 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STL_UTIL_H_ 14 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STL_UTIL_H_
15 15
16 #include <assert.h> 16 #include <assert.h>
17 #include <algorithm> 17 #include <algorithm>
18 #include <functional> 18 #include <functional>
19 #include <iterator> 19 #include <iterator>
20 #include <string> 20 #include <string>
21 #include <vector> 21 #include <vector>
22 22
23 namespace webrtc { 23 namespace webrtc {
24 24
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 template <typename Arg1, typename Arg2> 255 template <typename Arg1, typename Arg2>
256 bool STLIncludes(const Arg1& a1, const Arg2& a2) { 256 bool STLIncludes(const Arg1& a1, const Arg2& a2) {
257 assert(STLIsSorted(a1)); 257 assert(STLIsSorted(a1));
258 assert(STLIsSorted(a2)); 258 assert(STLIsSorted(a2));
259 return std::includes(a1.begin(), a1.end(), 259 return std::includes(a1.begin(), a1.end(),
260 a2.begin(), a2.end()); 260 a2.begin(), a2.end());
261 } 261 }
262 262
263 } // namespace webrtc 263 } // namespace webrtc
264 264
265 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STL_UTIL_H_ 265 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STL_UTIL_H_
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/include/static_instance.h ('k') | webrtc/system_wrappers/include/stringize_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698