AnySet Documentation
Public Types | Public Member Functions | Friends | List of all members
te::AnySet< HashFn, KeyEqual, Allocator >::const_iterator Struct Reference

Detailed Description

template<class HashFn = AnyHash, class KeyEqual = std::equal_to<>, class Allocator = std::allocator<AnyValue<HashFn, KeyEqual>>>
struct te::AnySet< HashFn, KeyEqual, Allocator >::const_iterator

Forward iterator type returned from const operations on AnySet instances.

The iterator essentially wraps an AnyValue* const* that points into a linked list. The decision to use a pointer-to-pointer makes erasure and insertion simpler to implement but makes iterator invalidation a little less intuitive. See specific AnySet member functions for details regarding iterator invalidation.

See also
AnySet
iterator

#include <AnySet.h>

Public Types

using value_type = typename AnySet::value_type
 
using reference = typename AnySet::const_reference
 
using pointer = typename AnySet::const_pointer
 
using difference_type = typename AnySet::difference_type
 
using iterator_category = std::forward_iterator_tag
 

Public Member Functions

 const_iterator (const const_list_iterator &it)
 
 const_iterator (const list_iterator &it)
 
const_iteratoroperator= (const iterator &other)
 

Friends

struct AnySet
 
Inheritance diagram for te::AnySet< HashFn, KeyEqual, Allocator >::const_iterator:
Inheritance graph
[legend]
Collaboration diagram for te::AnySet< HashFn, KeyEqual, Allocator >::const_iterator:
Collaboration graph
[legend]

The documentation for this struct was generated from the following file: