xtd 0.2.0
Loading...
Searching...
No Matches
xtd::collections::generic Namespace Reference

Definition

The xtd::collections::generic namespace contains interfaces and classes that define generic collections, which allow users to create strongly typed collections that provide better type safety and performance than non-generic strongly typed collections.

Namespaces

namespace  helpers
 The xtd::collections::generic::helpers namespace contains helpers for generic collections, sush as comparer, equator an hasher structs.
 

Classes

class  comparer
 Provides a base class for implementations of the xtd::collections::generic::icomparer <type_t> generic interface. More...
 
class  empty_comparer
 Provides an empty comparer class. More...
 
class  enumerable_iterators
 Internal enumarable iterators definition. More...
 
class  enumerator
 Supports a simple iteration over a generic collection. More...
 
class  icollection
 Defines methods to manipulate generic collections. More...
 
class  icomparer
 Exposes a method that compares two objects. More...
 
class  ienumerable
 Exposes the enumerator, which supports a simple iteration over a collection of a specified type. More...
 
class  ienumerator
 Supports a simple iteration over a generic collection. More...
 
class  iequality_comparer
 Defines methods to support the comparison of objects for equality. More...
 
class  ilist
 Represents a collection of objects that can be individually accessed by index. More...
 
class  key_not_found_exception
 The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. More...
 
class  list
 Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. More...
 

Alias

template<typename key_t , typename value_t >
using dictionary = std::unordered_map< key_t, value_t, helpers::hasher< key_t >, helpers::equator< key_t >, helpers::allocator< std::pair< const key_t, value_t > > >
 Represents a collection of keys and values.
 
template<typename type_t >
using hash_set = std::unordered_set< type_t, helpers::hasher< type_t >, helpers::equator< type_t >, helpers::allocator< type_t > >
 Represents a set of values.
 
template<typename key_t , typename value_t >
using key_value_pair = std::pair< key_t, value_t >
 Defines a key/value pair that can be set or retrieved.
 
template<typename key_t , typename value_t >
using sorted_dictionary = std::map< key_t, value_t, helpers::comparer< key_t >, helpers::allocator< std::pair< const key_t, value_t > > >
 Represents a collection of key/value pairs that are sorted on the key.
 
template<typename type_t >
using sorted_set = std::set< type_t, helpers::comparer< type_t >, helpers::allocator< type_t > >
 Represents a collection of objects that is maintained in sorted order.