Skip to content

ASet#

A std::set with AUI extensions.

Header:#include <AUI/Common/ASet.h>
CMake:aui_link(my_target PUBLIC aui::core)

Public Methods#

insertAll#


template<typename OtherContainer >
void ASet::insertAll(const OtherContainer& c)
Arguments
c
other container

Inserts all values of the specified container to the end.

Examples:

examples/ui/infinite_lazy_list/src/main.cpp

Infinite Lazy List — Usage of AUI_DECLARATIVE_FOR to make an infinite lazy list.

                return aui::ptr::manage_shared(new Item { .value = "Item {}"_format(loadFrom + i) });
            });

            AUI_UI_THREAD { // back to main thread.
                state->items.writeScope()->insertAll(loadedItems);
                state->needMore = false;
            };
        };
    });

isSubsetOf#


template<typename OtherContainer >
bool ASet::isSubsetOf(const OtherContainer& c)
Returns
true if c container is a subset of this container, false otherwise.