Push next no space check variant.

This commit is contained in:
Bartosz Taudul 2018-04-29 13:39:06 +02:00
parent bc84ebc338
commit a8ce01eeb1

View File

@ -101,6 +101,12 @@ public:
return m_ptr[m_size++]; return m_ptr[m_size++];
} }
T& push_next_no_space_check()
{
assert( m_size < Capacity() );
return m_ptr[m_size++];
}
T* insert( T* it, const T& v ) T* insert( T* it, const T& v )
{ {
assert( it >= m_ptr && it <= m_ptr + m_size ); assert( it >= m_ptr && it <= m_ptr + m_size );