hp_guard* release( size_t nIndex ) CDS_NOEXCEPT
{
- assert( nIndex < capacity() );
+ assert( nIndex < capacity());
hp_guard* p = m_arr[ nIndex ];
m_arr[ nIndex ] = nullptr;
/// Dtor
~hp_allocator()
{
- allocator_impl().Delete( m_arrHazardPtr, capacity() );
+ allocator_impl().Delete( m_arrHazardPtr, capacity());
}
/// Get capacity of array
/// Returns i-th hazard pointer
hp_guard& operator []( size_t i ) CDS_NOEXCEPT
{
- assert( i < capacity() );
+ assert( i < capacity());
return m_arrHazardPtr[i];
}