AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ASet< KeyType, Comparator, Allocator > Class Template Reference

A std::set with AUI extensions.

#include <AUI/Common/ASet.h>

Public Types#

using iterator = typename p::iterator
 

Public Member Functions#

template<typename OtherContainer>
void insertAll (const OtherContainer &c) noexcept
 
template<typename OtherContainer>
bool isSubsetOf (const OtherContainer &c) const noexcept
 
selfoperator<< (const KeyType &rhs) noexcept
 
selfoperator<< (KeyType &&rhs) noexcept
 
selfoperator>> (const KeyType &rhs) noexcept
 
template<typename OtherContainer, std::enable_if_t<!std::is_convertible_v< OtherContainer, KeyType >, bool > = true>
selfoperator<< (const OtherContainer &c) noexcept
 
bool contains (const KeyType &value) const noexcept
 

Member Function Documentation#

◆ 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
OtherContainerother container type.
Parameters
cother container

◆ 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
rhsvalue to push
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
ccontainer to push
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
rhsvalue to push
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
rhsvalue to push
Returns
self