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

Side by Side Diff: Source/wtf/OwnPtr.h

Issue 1088843002: Add #include <algorithm> to code that is missing it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: And no more comments Created 5 years, 8 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 | « Source/wtf/MathExtras.h ('k') | Source/wtf/RawPtr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 * 19 *
20 */ 20 */
21 21
22 #ifndef WTF_OwnPtr_h 22 #ifndef WTF_OwnPtr_h
23 #define WTF_OwnPtr_h 23 #define WTF_OwnPtr_h
24 24
25 #include "wtf/HashTableDeletedValueType.h" 25 #include "wtf/HashTableDeletedValueType.h"
26 #include "wtf/Noncopyable.h" 26 #include "wtf/Noncopyable.h"
27 #include "wtf/NullPtr.h" 27 #include "wtf/NullPtr.h"
28 #include "wtf/OwnPtrCommon.h" 28 #include "wtf/OwnPtrCommon.h"
29 #include <algorithm> 29 #include <algorithm>
30 #include <utility>
30 31
31 namespace WTF { 32 namespace WTF {
32 33
33 template<typename T> class PassOwnPtr; 34 template<typename T> class PassOwnPtr;
34 35
35 template<typename T> class OwnPtr { 36 template<typename T> class OwnPtr {
36 WTF_MAKE_NONCOPYABLE(OwnPtr); 37 WTF_MAKE_NONCOPYABLE(OwnPtr);
37 public: 38 public:
38 typedef typename RemoveExtent<T>::Type ValueType; 39 typedef typename RemoveExtent<T>::Type ValueType;
39 typedef ValueType* PtrType; 40 typedef ValueType* PtrType;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 template<typename T> inline typename OwnPtr<T>::PtrType getPtr(const OwnPtr< T>& p) 217 template<typename T> inline typename OwnPtr<T>::PtrType getPtr(const OwnPtr< T>& p)
217 { 218 {
218 return p.get(); 219 return p.get();
219 } 220 }
220 221
221 } // namespace WTF 222 } // namespace WTF
222 223
223 using WTF::OwnPtr; 224 using WTF::OwnPtr;
224 225
225 #endif // WTF_OwnPtr_h 226 #endif // WTF_OwnPtr_h
OLDNEW
« no previous file with comments | « Source/wtf/MathExtras.h ('k') | Source/wtf/RawPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698