mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-13 09:45:38 +07:00
add optional capacity control functions #3
This commit is contained in:
@@ -132,6 +132,9 @@ const_reverse_iterator crend() const noexcept;
|
||||
bool empty() const noexcept;
|
||||
size_type size() const noexcept;
|
||||
size_type max_size() const noexcept;
|
||||
size_type capacity() const noexcept;
|
||||
void reserve(size_type ncapacity);
|
||||
void shrink_to_fit();
|
||||
```
|
||||
|
||||
### Modifiers
|
||||
@@ -330,6 +333,9 @@ const_reverse_iterator crend() const noexcept;
|
||||
bool empty() const noexcept;
|
||||
size_type size() const noexcept;
|
||||
size_type max_size() const noexcept;
|
||||
size_type capacity() const noexcept;
|
||||
void reserve(size_type ncapacity);
|
||||
void shrink_to_fit();
|
||||
```
|
||||
|
||||
### Element access
|
||||
|
||||
Reference in New Issue
Block a user