xtd 0.2.0
Loading...
Searching...
No Matches

◆ icollection

Defines size, enumerators, and synchronization methods for all nongeneric collections.

Defines methods to manipulate generic collections.
Definition icollection.h:44
Header
#include <xtd/collections/icollection>
Namespace
xtd::collections
Library
xtd.core
Remarks
The xtd::collections::icollection interface is the base interface for classes in the xtd::collections namespace. Its generic equivalent is the xtd::collections::genric::icollection <type_t> interface.
The xtd::collections::icollection interface extends xtd::collections::ienumerable; xtd::collections::idictionary and xtd::collections::ilist are more specialized interfaces that extend xtd::collections::icollection. An xtd::collections::idictionary implementation is a collection of key/value pairs, like the xtd::collections::hashtable class. An xtd::collections::ilist implementation is a collection of values and its members can be accessed by index, like the xtd::collections::array_list class.
Some collections that limit access to their elements, such as the xtd::collections::queue class and the xtd::collections::stack class, directly implement the xtd::collections::icollection interface.
If neither the xtd::collections::idictionary interface nor the xtd::collections::ilist interface meet the requirements of the required collection, derive the new collection class from the xtd::collections::icollection interface instead for more flexibility.
For the generic version of this interface, see xtd::collections::generic::icollection <type_t>.