A std::set with AUI extensions.
More...
#include <AUI/Common/ASet.h>
|
using | iterator = typename p::iterator |
|
|
template<typename OtherContainer> |
void | insertAll (const OtherContainer &c) noexcept |
|
template<typename OtherContainer> |
bool | isSubsetOf (const OtherContainer &c) const noexcept |
|
self & | operator<< (const KeyType &rhs) noexcept |
|
self & | operator<< (KeyType &&rhs) noexcept |
|
self & | operator>> (const KeyType &rhs) noexcept |
|
template<typename OtherContainer, std::enable_if_t<!std::is_convertible_v< OtherContainer, KeyType >, bool > = true> |
self & | operator<< (const OtherContainer &c) noexcept |
|
bool | contains (const KeyType &value) const noexcept |
|
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
class ASet< KeyType, Comparator, Allocator >
A std::set with AUI extensions.
◆ insertAll()
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
template<typename OtherContainer>
void ASet< KeyType, Comparator, Allocator >::insertAll |
( |
const OtherContainer & | c | ) |
|
|
inlinenoexcept |
Inserts all values of the specified container to the end.
- Template Parameters
-
OtherContainer | other container type. |
- Parameters
-
◆ isSubsetOf()
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
template<typename OtherContainer>
bool ASet< KeyType, Comparator, Allocator >::isSubsetOf |
( |
const OtherContainer & | c | ) |
const |
|
inlinenoexcept |
- Returns
- true if
c
container is a subset of this container, false otherwise.
◆ operator<<() [1/3]
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
self & ASet< KeyType, Comparator, Allocator >::operator<< |
( |
const KeyType & | rhs | ) |
|
|
inlinenoexcept |
Shortcut to push_back
.
- Parameters
-
- Returns
- self
◆ operator<<() [2/3]
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
template<typename OtherContainer, std::enable_if_t<!std::is_convertible_v< OtherContainer, KeyType >, bool > = true>
self & ASet< KeyType, Comparator, Allocator >::operator<< |
( |
const OtherContainer & | c | ) |
|
|
inlinenoexcept |
Shortcut to insertAll
.
- Parameters
-
- Returns
- self
◆ operator<<() [3/3]
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
self & ASet< KeyType, Comparator, Allocator >::operator<< |
( |
KeyType && | rhs | ) |
|
|
inlinenoexcept |
Shortcut to insert
.
- Parameters
-
- Returns
- self
◆ operator>>()
template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
self & ASet< KeyType, Comparator, Allocator >::operator>> |
( |
const KeyType & | rhs | ) |
|
|
inlinenoexcept |
Shortcut to erase
.
- Parameters
-
- Returns
- self
The documentation for this class was generated from the following file:
- aui.core/src/AUI/Common/ASet.h