| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |