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

Definition

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

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

Classes

struct  comparer
 Implements a function object for compare data. More...
 
struct  equator
 Implements a function object for performing comparisons. Unless specialised, invokes operator== on type type_t. xtd::equator with the key and the value strongly typed to be std::any. More...
 
struct  hasher
 Implements a function object for hashing data. More...
 
struct  lesser
 Implements a function object for compare data. More...
 
class  wrap_pointer_iterator
 Represents a wrap pointer iterator. More...
 

Alias

template<class value_t , class iterator_tag_t = std::random_access_iterator_tag>
using wrap_pointer_reverse_iterator = std::reverse_iterator< wrap_pointer_iterator< value_t, iterator_tag_t > >
 Represents a wrap pointer reverse iterator.
 

Aliases

template<class type_t >
using allocator = std::allocator< type_t >
 Represent an allocator alias.
 
template<class input_iterator_t >
using iterator_value_t = typename std::iterator_traits< input_iterator_t >::value_type
 Represents the value iterator type.
 
template<class input_iterator_t >
using iterator_key_t = std::remove_const_t< std::tuple_element_t< 0, iterator_value_t< input_iterator_t > > >
 Represents the key iterator type.
 
template<class input_iterator_t >
using iterator_mapped_t = std::tuple_element_t< 1, iterator_value_t< input_iterator_t > >
 Represents the mapped iterator type.
 
template<class input_iterator_t >
using iterator_to_allocator_t = std::pair< std::add_const_t< iterator_key_t< input_iterator_t > >, iterator_mapped_t< input_iterator_t > >
 Represents the iterator to allocator type.