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

Side by Side Diff: base/stl_util.h

Issue 2243793002: base: Remove global stl util aliases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Derived from google3/util/gtl/stl_util.h 5 // Derived from google3/util/gtl/stl_util.h
6 6
7 #ifndef BASE_STL_UTIL_H_ 7 #ifndef BASE_STL_UTIL_H_
8 #define BASE_STL_UTIL_H_ 8 #define BASE_STL_UTIL_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 template <typename Arg1, typename Arg2> 252 template <typename Arg1, typename Arg2>
253 bool STLIncludes(const Arg1& a1, const Arg2& a2) { 253 bool STLIncludes(const Arg1& a1, const Arg2& a2) {
254 DCHECK(STLIsSorted(a1)); 254 DCHECK(STLIsSorted(a1));
255 DCHECK(STLIsSorted(a2)); 255 DCHECK(STLIsSorted(a2));
256 return std::includes(a1.begin(), a1.end(), 256 return std::includes(a1.begin(), a1.end(),
257 a2.begin(), a2.end()); 257 a2.begin(), a2.end());
258 } 258 }
259 259
260 } // namespace base 260 } // namespace base
261 261
262 // TODO(skyostil): Remove these global aliases once all call sites have been
263 // fixed.
264 using base::ContainsKey;
265 using base::ContainsValue;
266 using base::STLClearObject;
267 using base::STLCount;
268 using base::STLDeleteContainerPairFirstPointers;
269 using base::STLDeleteContainerPairPointers;
270 using base::STLDeleteContainerPairSecondPointers;
271 using base::STLDeleteContainerPointers;
272 using base::STLDeleteElements;
273 using base::STLDeleteValues;
274 using base::STLElementDeleter;
275 using base::STLValueDeleter;
276 using base::string_as_array;
277
278 #endif // BASE_STL_UTIL_H_ 262 #endif // BASE_STL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698