Merge "Add "operator bool" overload to android::sp." am: 28ebfe18fb

am: 56c22732c6

Change-Id: I0068bb0fee78b62abe97175b2594b579b6fc8f81
This commit is contained in:
Jeff Sharkey 2017-09-13 23:14:06 +00:00 committed by android-build-merger
commit a915e99e04
1 changed files with 4 additions and 3 deletions

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