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