Added comment.

This commit is contained in:
Nikolai Kochetov 2020-05-18 09:06:48 +03:00
parent fcde0d36bd
commit cdb742dd4b

View File

@ -217,6 +217,7 @@ protected:
operator const immutable_ptr<T> & () const { return value; }
operator immutable_ptr<T> & () { return value; }
/// Get internal immutable ptr. Does not change internal use counter.
immutable_ptr<T> detach() && { return std::move(value); }
operator bool() const { return value != nullptr; }