Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28ebfe18 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 1f666a6b 147b881c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ public:
    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