35 #if defined(OpInSTLContainers_RECURSES)
36 #error Recursive header files inclusion detected in OpInSTLContainers.h
39 #define OpInSTLContainers_RECURSES
41 #if !defined OpInSTLContainers_h
43 #define OpInSTLContainers_h
77 template <
typename Container,
typename Iterator>
80 static Iterator
erase(Container& aContainer,Iterator& anIterator)
82 return aContainer.erase(anIterator);
85 static Iterator
insert(Container& aContainer,Iterator& anIterator)
87 return aContainer.insert(anIterator);
93 template <
typename Container>
96 std::reverse_iterator<typename Container::iterator> >
102 Container& aContainer,
106 Iterator base = (++anIterator).base();
109 base = aContainer.erase(base);
116 Container& aContainer,
118 const typename Container::value_type& aValue)
120 Iterator base = aContainer.insert(anIterator.base(), aValue);
132 #undef OpInSTLContainers_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
std::reverse_iterator< typename Container::iterator > ReverseIterator
Container::iterator Iterator
static ReverseIterator erase(Container &aContainer, ReverseIterator &anIterator)
static ReverseIterator insert(Container &aContainer, ReverseIterator &anIterator, const typename Container::value_type &aValue)
static Iterator insert(Container &aContainer, Iterator &anIterator)
static Iterator erase(Container &aContainer, Iterator &anIterator)