Merge "Add "operator bool" overload to android::sp." am: 28ebfe18fb am: 56c22732c6
am: a915e99e04
Change-Id: I28b9df6d67ae28ccdf6ec1af773de57fff45a49a
This commit is contained in:
commit
6b82ada2e0
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue