AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ASet< KeyType, Comparator, Allocator > Class Template Reference

A std::set with AUI extensions. More...

Detailed Description

template<class KeyType, class Comparator = std::less<KeyType>, class Allocator = std::allocator<KeyType>>
class ASet< KeyType, Comparator, Allocator >

A std::set with AUI extensions.

Examples
/github/workspace/aui.core/src/AUI/Common/AObject.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
Returns
iterator pointing to the first element inserted.

◆ 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
rhscontainer 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

#include <AUI/Common/ASet.h>


The documentation for this class was generated from the following file:
Inheritance diagram for ASet< KeyType, Comparator, Allocator >:
Collaboration diagram for ASet< KeyType, Comparator, Allocator >: