#include <OnixS/CME/MDH/TinySet.h>
Public Types | |
| using | Item = Key |
| using | Items = std::vector<Item> |
| using | ConstIterator = typename Items::const_iterator |
Public Member Functions | |
| TinySet ()=default | |
| TinySet (size_t capacity) | |
| TinySet (const TinySet &other)=default | |
| TinySet (TinySet &&other)=default | |
| TinySet & | operator= (const TinySet &other) |
| TinySet & | operator= (TinySet &&other) noexcept |
| ~TinySet ()=default | |
| bool | empty () const noexcept |
| size_t | size () const noexcept |
| void | reserve (size_t capacity) |
| ConstIterator | begin () const noexcept |
| ConstIterator | end () const noexcept |
| ConstIterator | find (const Item &item) const noexcept |
| bool | insert (const Item &item) |
| bool | erase (const Item &item) noexcept |
| void | clear () noexcept |
| void | swap (TinySet &other) noexcept |
| Key | Copy-constructible, nothrow move-assignable, nothrow destructible, and nothrow equality-comparable item type. |
| using ConstIterator = typename Items::const_iterator |
| using Item = Key |
|
default |
Constructs an empty set.
|
inlineexplicit |
Constructs an empty set with storage reserved for at least the requested capacity.
| capacity | Number of keys for which to reserve storage. |
| std::length_error | If capacity exceeds the maximum supported size. |
| std::bad_alloc | If storage allocation fails. |
|
default |
Constructs a set containing copies of another set's keys.
| other | Set to copy. |
| std::bad_alloc | If storage allocation fails. |
| Any | exception thrown by Item copy construction. |
|
default |
Constructs a set by transferring another set's storage.
| other | Set whose content is transferred. |
other remains valid but has unspecified content.
|
default |
Releases the owned key storage.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Inserts a copy of a key unless an equal key is already present.
| item | Key to insert. |
| std::length_error | If growing the set would exceed its maximum supported size. |
| std::bad_alloc | If storage allocation fails. |
| Any | exception thrown by Item copy construction. |
|
inline |
Reserves storage for at least the requested number of keys.
| capacity | Number of keys for which to reserve storage. |
| std::length_error | If capacity exceeds the maximum supported size. |
| std::bad_alloc | If storage allocation fails. |
| Any | exception thrown while relocating an Item. |
|
inlinenoexcept |
|
inlinenoexcept |