Go to the documentation of this file.
18 #ifndef __LIBSTD_CONTAINER_H
19 #define __LIBSTD_CONTAINER_H
66 virtual void clear() = 0;
virtual Size count() const =0
Returns the number of items inside the Container.
Containers provide access to stored items.
virtual bool reserve(Size size)
Ensure that at least the given size is available.
virtual bool isEmpty() const
Check if the Container is empty.
virtual bool shrink(Size size)
Shrink the container size by the given amount of items.
virtual Size squeeze()
Try to minimize the memory required in the Container.
virtual bool resize(Size size)
Change the size of the Container.
virtual ~Container()
Destructor.
unsigned int Size
Any sane size indicator cannot go negative.
virtual void clear()=0
Removes all items from the Container.
virtual Size size() const =0
Returns the maximum size of this Container.