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

Side by Side Diff: mojo/edk/util/ref_ptr.h

Issue 1558333002: Rectify our use of std::nullptr_t, inclusions of <stddef.h>/<cstddef>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « mojo/edk/util/ref_counted.h ('k') | mojo/icu/constants.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Provides a smart pointer class for intrusively reference-counted objects. 5 // Provides a smart pointer class for intrusively reference-counted objects.
6 6
7 #ifndef MOJO_EDK_UTIL_REF_PTR_H_ 7 #ifndef MOJO_EDK_UTIL_REF_PTR_H_
8 #define MOJO_EDK_UTIL_REF_PTR_H_ 8 #define MOJO_EDK_UTIL_REF_PTR_H_
9 9
10 #include <assert.h> 10 #include <assert.h>
11 #include <cstddef>
11 12
12 #include <cstddef>
13 #include <utility> 13 #include <utility>
14 14
15 #include "mojo/edk/util/ref_ptr_internal.h" 15 #include "mojo/edk/util/ref_ptr_internal.h"
16 #include "mojo/public/cpp/system/macros.h" 16 #include "mojo/public/cpp/system/macros.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace util { 19 namespace util {
20 20
21 // A smart pointer class for intrusively reference-counted objects (e.g., those 21 // A smart pointer class for intrusively reference-counted objects (e.g., those
22 // subclassing |RefCountedThreadSafe| -- see ref_counted.h). 22 // subclassing |RefCountedThreadSafe| -- see ref_counted.h).
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 template <typename T, typename... Args> 224 template <typename T, typename... Args>
225 RefPtr<T> MakeRefCounted(Args&&... args) { 225 RefPtr<T> MakeRefCounted(Args&&... args) {
226 return internal::MakeRefCountedHelper<T>::MakeRefCounted( 226 return internal::MakeRefCountedHelper<T>::MakeRefCounted(
227 std::forward<Args>(args)...); 227 std::forward<Args>(args)...);
228 } 228 }
229 229
230 } // namespace util 230 } // namespace util
231 } // namespace mojo 231 } // namespace mojo
232 232
233 #endif // MOJO_EDK_UTIL_REF_PTR_H_ 233 #endif // MOJO_EDK_UTIL_REF_PTR_H_
OLDNEW
« no previous file with comments | « mojo/edk/util/ref_counted.h ('k') | mojo/icu/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698