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

am: 28ebfe18fb

Change-Id: Idc8a68835c6a13ab92ffce44507360c2d8e6d9e5
This commit is contained in:
Jeff Sharkey 2017-09-13 22:47:21 +00:00 committed by android-build-merger
commit 56c22732c6
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