28 return _void_ptr ==
nullptr;
34INLINE
size_t PointerToVoid::
36 return (
size_t)_void_ptr;
42INLINE
bool PointerToVoid::
43operator < (
const void *other)
const {
44 return _void_ptr < other;
50INLINE
bool PointerToVoid::
52 return _void_ptr < other._void_ptr;
58INLINE
bool PointerToVoid::
60 return _void_ptr == other._void_ptr;
66INLINE
bool PointerToVoid::
68 return _void_ptr != other._void_ptr;
79 AtomicAdjust::Pointer temp = _void_ptr;
80 _void_ptr = other._void_ptr;
81 other._void_ptr = temp;
This is the non-template part of the base class for PointerTo and ConstPointerTo.
constexpr bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
void swap(PointerToVoid &other) noexcept
Swaps the contents of this PointerTo with the other, without touching the reference counts.