32 template<
class type_t>
33 class iset :
public icollection<type_t> {
39 using iterator =
typename icollection<type_t>::iterator;
50 virtual bool add(
const type_t& item)
noexcept = 0;
33 class iset :
public icollection<type_t> {
…};
Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Definition ienumerable.hpp:36
Provides the base interface for the abstraction of sets.
Definition iset.hpp:33
virtual bool is_proper_superset_of(const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0
Determines whether the current set is a proper (strict) superset of a specified collection.
virtual bool is_proper_subset_of(const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0
Determines whether the current set is a proper (strict) superset of a specified collection.
virtual bool set_equals(const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0
Determines whether the current set and the specified collection contain the same elements.
virtual bool is_subset_of(const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0
Determines whether a set is a subset of a specified collection.
virtual void intersec_with(const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0
Modifies the current set so that it contains only elements that are also in a specified collection.
virtual bool overlaps(const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0
Determines whether the current set overlaps with the specified collection.
virtual void symetric_excep_with(const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0
Modifies the current set so that it contains only elements that are present either in the current set...
virtual bool is_superset_of(const xtd::collections::generic::ienumerable< type_t > &other) const noexcept=0
Determines whether a set is a superset of a specified collection.
virtual void except_with(const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0
Removes all elements in the specified collection from the current set.
typename icollection< type_t >::iterator iterator
Represents the iterator of xtd::collections::generic::ienumerable value type.
Definition iset.hpp:39
virtual void union_with(const xtd::collections::generic::ienumerable< type_t > &other) noexcept=0
Modifies the current set so that it contains all elements that are present in the current set,...
typename icollection< type_t >::const_iterator const_iterator
Represents the const iterator of xtd::collections::generic::ienumerable value type.
Definition iset.hpp:41
virtual bool add(const type_t &item) noexcept=0
Adds an element to the current set and returns a value to indicate if the element was successfully ad...
Contains xtd::collections::generic::icollection <type_t> interface.
@ other
The operating system is other.
Definition platform_id.hpp:58
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8