Commit 741eca07 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Thomas Guillem
Browse files

cxx helpers: shared_data: Add nullptr comparison operators

Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent 3475e434
......@@ -202,11 +202,21 @@ public:
return ptr == other.ptr;
bool operator==(std::nullptr_t) const noexcept
return ptr == nullptr;
bool operator!=(const vlc_shared_data_ptr &other) const
return !(*this == other);
bool operator!=(std::nullptr_t) const noexcept
return ptr != nullptr;
explicit operator bool() const
return ptr;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment