pstore2
Public Types | Public Member Functions | List of all members
pstore::details::pair_field_iterator< Iterator, Accessor > Class Template Reference

#include <sparse_array.hpp>

Public Types

using value_type = typename std::remove_reference< return_type >::type
 
using pointer = value_type *
 
using const_pointer = value_type const *
 
using reference = value_type &
 
using const_reference = value_type const &
 
using difference_type = typename std::iterator_traits< Iterator >::difference_type
 
using iterator_category = typename std::iterator_traits< Iterator >::iterator_category
 

Public Member Functions

 pair_field_iterator (Iterator it, Accessor acc)
 
pair_field_iteratoroperator+= (difference_type rhs)
 
pair_field_iteratoroperator-= (difference_type rhs)
 
difference_type operator- (pair_field_iterator const &other) const
 
pair_field_iterator operator- (difference_type rhs)
 
pair_field_iterator operator+ (difference_type rhs)
 
pair_field_iteratoroperator++ ()
 
pair_field_iterator operator++ (int)
 
bool operator< (pair_field_iterator const &other) const
 
bool operator== (pair_field_iterator const &other) const
 
bool operator!= (pair_field_iterator const &other) const
 
const_reference operator* () const
 
const_pointer operator-> () const
 

Detailed Description

template<typename Iterator, typename Accessor>
class pstore::details::pair_field_iterator< Iterator, Accessor >

Template Parameters
IteratorAn iterator type whose value_type is a std::pair<>.
AccessorThe type of a function which will be called to yield the values from the pair. It should accept a single parameter of type Iterator and return the value of the first or second field of the referenced std::pair<> instance.

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