OKlibrary  0.2.1.6
OKlib::SetAlgorithms::Erase< Container > Class Template Reference

Functor template for (generically) erasing an element from a container while maintaining the element-specifying iterator. More...

#include <Subsumption.hpp>

List of all members.

Public Types

typedef Container::iterator iterator

Public Member Functions

iterator operator() (Container &C, const iterator &i) const

Detailed Description

template<class Container>
class OKlib::SetAlgorithms::Erase< Container >

Functor template for (generically) erasing an element from a container while maintaining the element-specifying iterator.

Usage is Erase<Container_type>()(C,i), where C is the container, and i is the iterator to the element to be erased. Returns an iterator to the element replacing *i (or an end-iterator).

Todo:
Organisation
  • These functors should move to the iterator tools ?!
  • On the other hand they should be adaptable to the *special* situation at hand.

Definition at line 92 of file Subsumption.hpp.


Member Typedef Documentation

template<class Container >
typedef Container::iterator OKlib::SetAlgorithms::Erase< Container >::iterator

Definition at line 93 of file Subsumption.hpp.


Member Function Documentation

template<class Container >
iterator OKlib::SetAlgorithms::Erase< Container >::operator() ( Container &  C,
const iterator i 
) const [inline]

Definition at line 94 of file Subsumption.hpp.


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