Replace NULL with nullptr
[libcds.git] / cds / gc / hzp / details / hp_alloc.h
index 7d9d5f15d3c939e9f0bb67c4b5806ac83892f551..40561fba0f491fd8d7fb9d7b27d9ab0a2e379365 100644 (file)
@@ -56,6 +56,14 @@ namespace cds {
                 return p;
             }
 
+            //@cond
+            std::nullptr_t operator=( std::nullptr_t ) CDS_NOEXCEPT
+            {
+                clear();
+                return nullptr;
+            }
+            //@endcond
+
             /// Returns current value of hazard pointer
             /**
                 Loading has acquire semantics
@@ -159,7 +167,7 @@ namespace cds {
                 return m_arr[nIndex];
             }
 
-            /// Clears (sets to NULL) hazard pointer \p nIndex
+            /// Clears (sets to \p nullptr) hazard pointer \p nIndex
             void clear( size_t nIndex ) CDS_NOEXCEPT
             {
                 assert( nIndex < capacity() );