Template Class CExpandingVector
Defined in File expanding_vector.h
Class Documentation
-
template<class T>
class CExpandingVector A vector that never destructs its elements, but only calls clear on them.
This class is not threadsafe and needs to be protected by locks / mutexes in multithreaded environments.
From the outside / for the user, this class acts as a regular std::vector. However, when calling clear(), a regular vector will destroy the elements which are stored in this vector. This class, will instead call the
clear()
functions on all members.- Template Parameters:
T – The type of the values. Must provide a
.clear()
function
Public Types
Public Functions
-
inline size_t size() const
-
inline void clear()
-
inline void resize(size_t new_size)
-
inline const_iterator begin() const
-
inline const_iterator end() const
-
inline size_t capacity() const
-
inline bool empty() const
-
inline size_t full_size() const
-
inline bool operator==(const CExpandingVector<T> &other) const
-
inline bool operator!=(const CExpandingVector<T> &other) const