omw  0.2.0
Public Member Functions | Static Public Attributes | List of all members
omw::vector< T, Allocator > Class Template Reference
Inheritance diagram for omw::vector< T, Allocator >:

Public Member Functions

 vector (size_type count)
 
 vector (size_type count, const T &value)
 
 vector (const T *first, const T *last)
 
 vector (std::initializer_list< T > init)
 
 vector (const std::vector< T, Allocator > &other)
 
bool contains (const T &item) const
 
void reserveAdd (size_type addCap)
 

Static Public Attributes

static constexpr size_type maxsz = static_cast<size_type>(-1)
 

Detailed Description

template<class T, class Allocator = std::allocator<T>>
class omw::vector< T, Allocator >

A with std::vector interchangeable class to add more functionalities. This class does not override/implement any (virtual) methods of the base class and has no attributes. It's basically a std::vector with some more methods.

Member Function Documentation

◆ reserveAdd()

template<class T , class Allocator = std::allocator<T>>
omw::vector< T, Allocator >::reserveAdd ( size_type  addCap)
inline

Reserves additional memory.

this->reserve(this->size() + addCap)

See std::vector<T,Allocator>::reserve and std::vector<T,Allocator>::size.


The documentation for this class was generated from the following files: