return *value_cast()( m_guard.template get<guarded_type>() );
}
- /// Checks if the guarded pointer is \p NULL
+ /// Checks if the guarded pointer is \p nullptr
bool empty() const CDS_NOEXCEPT
{
- return m_guard.template get<guarded_type>() == null_ptr<guarded_type *>();
+ return m_guard.template get<guarded_type>() == nullptr;
}
/// Clears guarded pointer
bool empty() const CDS_NOEXCEPT
{
- return m_guard.template get<guarded_type>() == null_ptr<guarded_type *>();
+ return m_guard.template get<guarded_type>() == nullptr;
}
void release() CDS_NOEXCEPT