DGtal
0.6.devel
|
#include <OpInSTLContainers.h>
Static Public Member Functions | |
static Iterator | erase (Container &aContainer, Iterator &anIterator) |
static Iterator | insert (Container &aContainer, Iterator &anIterator) |
Aim: Implementation of an adapter for erase and insert methods of STL containers so that they not only work for the iterator type, but also for the reverse_iterator type.
Description of struct 'OpInSTLContainers' <p> @code
// anIterator = aContainer.erase(anIterator); //does not compile if anIterator has type 'std::reverse_iterator' //erase only takes parameter of type 'std::iterator' anIterator = DGtal::OpInSTLContainers<Container,Iterator> ::erase(aContainer, anIterator);
Definition at line 76 of file OpInSTLContainers.h.
|
inlinestatic |
Definition at line 78 of file OpInSTLContainers.h.
|
inlinestatic |
Definition at line 83 of file OpInSTLContainers.h.