28 return _void_ptr ==
nullptr;
34 INLINE
size_t PointerToVoid::
36 return (
size_t)_void_ptr;
42 INLINE
bool PointerToVoid::
43 operator < (
const void *other)
const {
44 return _void_ptr < other;
50 INLINE
bool PointerToVoid::
52 return _void_ptr < other._void_ptr;
58 INLINE
bool PointerToVoid::
60 return _void_ptr == other._void_ptr;
66 INLINE
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;
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.
This is the non-template part of the base class for PointerTo and ConstPointerTo.