Merge "Add "operator bool" overload to android::sp."

This commit is contained in:
Treehugger Robot 2017-09-13 20:35:38 +00:00 committed by Gerrit Code Review
commit 28ebfe18fb

View file

@ -82,9 +82,10 @@ public:
// Accessors
inline T& operator* () const { return *m_ptr; }
inline T* operator-> () const { return m_ptr; }
inline T* get() const { return m_ptr; }
inline T& operator* () const { return *m_ptr; }
inline T* operator-> () const { return m_ptr; }
inline T* get() const { return m_ptr; }
inline explicit operator bool () const { return m_ptr != nullptr; }
// Operators