Merge "Add "operator bool" overload to android::sp." am: 28ebfe18fb
am: 56c22732c6
Change-Id: I0068bb0fee78b62abe97175b2594b579b6fc8f81
This commit is contained in:
commit
a915e99e04
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue