зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1410760 - Fix comment on NotNull<UniquePtr<T>>. r=gerald DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100322
This commit is contained in:
Родитель
61dfd2e32d
Коммит
7326b3cd81
|
@ -90,6 +90,7 @@ class MovingNotNull;
|
||||||
// - NotNull<char*>
|
// - NotNull<char*>
|
||||||
// - NotNull<RefPtr<Event>>
|
// - NotNull<RefPtr<Event>>
|
||||||
// - NotNull<nsCOMPtr<Event>>
|
// - NotNull<nsCOMPtr<Event>>
|
||||||
|
// - NotNull<UniquePtr<Pointee>>
|
||||||
//
|
//
|
||||||
// NotNull has the following notable properties.
|
// NotNull has the following notable properties.
|
||||||
//
|
//
|
||||||
|
@ -112,8 +113,9 @@ class MovingNotNull;
|
||||||
// boolean context, which eliminates the possibility of unnecessary null
|
// boolean context, which eliminates the possibility of unnecessary null
|
||||||
// checks.
|
// checks.
|
||||||
//
|
//
|
||||||
// NotNull currently doesn't work with UniquePtr. See
|
// - It is not movable, but copyable if the base pointer type is copyable. It
|
||||||
// https://github.com/Microsoft/GSL/issues/89 for some discussion.
|
// may be used together with MovingNotNull to avoid unnecessary copies or when
|
||||||
|
// the base pointer type is not copyable (such as UniquePtr<T>).
|
||||||
//
|
//
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class NotNull {
|
class NotNull {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче