Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ base/

operations_research::Eraser< Container > Class Template Reference

This class performs an iterator-friendly erasure: the element pointed at gets removed from the container and the iterator remains valid and points to the next element. More...

#include <concise_iterator.h>

List of all members.

Public Types

typedef Container::iterator iterator_type

Static Public Member Functions

static iterator_typeerase (Container *container, iterator_type *iterator)


Detailed Description

template<class Container>
class operations_research::Eraser< Container >

This class performs an iterator-friendly erasure: the element pointed at gets removed from the container and the iterator remains valid and points to the next element.

This is only valid for set, multiset, map, multimap and list. Vectors and Deques are special cases that need specialized processing defined in the specific template classes below.

Definition at line 254 of file concise_iterator.h.


Member Typedef Documentation

template<class Container>
typedef Container::iterator operations_research::Eraser< Container >::iterator_type

Definition at line 256 of file concise_iterator.h.


Member Function Documentation

template<class Container>
static iterator_type* operations_research::Eraser< Container >::erase ( Container *  container,
iterator_type iterator 
) [inline, static]

Definition at line 257 of file concise_iterator.h.


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