Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
741eca07
Commit
741eca07
authored
Apr 02, 2019
by
Hugo Beauzée-Luyssen
Committed by
Thomas Guillem
Apr 10, 2019
Browse files
cxx helpers: shared_data: Add nullptr comparison operators
Signed-off-by:
Thomas Guillem
<
thomas@gllm.fr
>
parent
3475e434
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/vlc_cxx_helpers.hpp
View file @
741eca07
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment