template <class U>

class NotNullSharedPtr

Defined at line 208 of file ../../third_party/cobalt/src/lib/util/not_null.h

Public Methods

template <typename U>
void NotNullSharedPtr<T> (NotNullUniquePtr<U> && other)

Construct the NotNullSharedPtr from an existing NotNullUniquePtr. This invalidates the source

ptr, and pins the managed object in place.

Defined at line 217 of file ../../third_party/cobalt/src/lib/util/not_null.h

template <typename U>
NotNullSharedPtr<T> & operator= (NotNullUniquePtr<U> && other)

Defined at line 234 of file ../../third_party/cobalt/src/lib/util/not_null.h

T * get ()

Access the contained ptr. Guaranteed never to return null.

Defined at line 240 of file ../../third_party/cobalt/src/lib/util/not_null.h

T * operator-> ()

Defined at line 241 of file ../../third_party/cobalt/src/lib/util/not_null.h

T & operator* ()

Defined at line 242 of file ../../third_party/cobalt/src/lib/util/not_null.h

Friends

template <typename U>
lib::statusor::StatusOr<NotNullSharedPtr<U>> NotNullSharedPtr (std::shared_ptr<U> && other)