Contains collections definitions.
Topics | |
| generic | |
| Contains generic collections definitions. | |
| object model | |
| Contains object model collections definitions. | |
| specialized | |
| Contains specialized collections definitions. | |
Classes | |
| class | xtd::collections::bit_array |
| Manages a compact array of bit values, which are represented as booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0). More... | |
| class | xtd::forms::layout::arranged_element_collection< type_t, sorter_t > |
| Represents a collection of objects. More... | |
Typedefs | |
| using | xtd::collections::array_list |
| Represents a collection of xtd::any_object. | |
| using | xtd::collections::comparer |
| Exposes a method that compares two objects. | |
| using | xtd::collections::dictionary_entry |
| Defines a dictionary key/value pair that can be set or retrieved. | |
| using | xtd::collections::enumerator |
| Supports a simple iteration over a non-generic collection. | |
| using | xtd::collections::hashtable |
| Represents a collection of key/value pairs that are organized based on the hash code of the key. | |
| using | xtd::collections::icollection |
| Defines size, enumerators, and synchronization methods for all nongeneric collections. | |
| using | xtd::collections::icomparer |
| interface IComparer exposes a method that compares two objects. | |
| using | xtd::collections::idictionary |
| interface IComparer exposes a method that compares two objects. | |
| using | xtd::collections::ienumerable |
| Exposes an enumerator, which supports a simple iteration over a non-generic collection. | |
| using | xtd::collections::ienumerator |
| Supports a simple iteration over a non-generic collection. | |
| using | xtd::collections::iequality_comparer |
| Defines methods to support the comparison of objects for equality. | |
| using | xtd::collections::ilist |
| Represents a non-generic collection of objects that can be individually accessed by index. | |
| using | xtd::collections::queue |
| Represents a first-in, first-out collection of objects. | |
| using | xtd::collections::sorted_list |
| Represents a collection of xtd::any_object. | |
| using | xtd::collections::stack |
| Represents a collection of xtd::any_object. | |
#include <array_list.hpp>
Represents a collection of xtd::any_object.
#include <comparer.hpp>
Exposes a method that compares two objects.
#include <dictionary_entry.hpp>
Defines a dictionary key/value pair that can be set or retrieved.
#include <enumerator.hpp>
Supports a simple iteration over a non-generic collection.
#include <hashtable.hpp>
Represents a collection of key/value pairs that are organized based on the hash code of the key.
#include <icollection.hpp>
Defines size, enumerators, and synchronization methods for all nongeneric collections.
#include <icomparer.hpp>
interface IComparer exposes a method that compares two objects.
#include <idictionary.hpp>
interface IComparer exposes a method that compares two objects.
#include <ienumerable.hpp>
Exposes an enumerator, which supports a simple iteration over a non-generic collection.
#include <ienumerator.hpp>
Supports a simple iteration over a non-generic collection.
The following code example demonstrates the best practice for iterating a custom collection by implementing the xtd::collections::ienumerable and xtd::collections::ienumerator interfaces. In this example, members of these interfaces are not explicitly called, but they are implemented to support the use of for each to iterate through the collection. This example is a complete Console app.
#include <iequality_comparer.hpp>
Defines methods to support the comparison of objects for equality.
| using xtd::collections::ilist |
#include <ilist.hpp>
Represents a non-generic collection of objects that can be individually accessed by index.
par Examples The following example demonstrates the implementation of the xtd::collections::ilist interface to create a simple, fixed-size list.
| using xtd::collections::queue |
#include <queue.hpp>
Represents a first-in, first-out collection of objects.
#include <sorted_list.hpp>
Represents a collection of xtd::any_object.
| using xtd::collections::stack |
#include <stack.hpp>
Represents a collection of xtd::any_object.