File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 1.4.2
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DGtal::OpInSTLContainers< Container, Iterator > Struct Template Reference

#include <DGtal/base/OpInSTLContainers.h>

Static Public Member Functions

static Iterator erase (Container &aContainer, Iterator &anIterator)
 
static Iterator insert (Container &aContainer, Iterator &anIterator)
 

Detailed Description

template<typename Container, typename Iterator>
struct DGtal::OpInSTLContainers< Container, Iterator >
Description of struct 'OpInSTLContainers' <p> \brief 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.
// anIterator = aContainer.erase(anIterator);
//does not compile if anIterator has type 'std::reverse_iterator'
//erase only takes parameter of type 'std::iterator'
anIterator =
::erase(aContainer, anIterator);
@see Preimage2D.ih

Definition at line 78 of file OpInSTLContainers.h.

Member Function Documentation

◆ erase()

template<typename Container , typename Iterator >
static Iterator DGtal::OpInSTLContainers< Container, Iterator >::erase ( Container & aContainer,
Iterator & anIterator )
inlinestatic

Definition at line 80 of file OpInSTLContainers.h.

81 {
82 return aContainer.erase(anIterator);
83 }

◆ insert()

template<typename Container , typename Iterator >
static Iterator DGtal::OpInSTLContainers< Container, Iterator >::insert ( Container & aContainer,
Iterator & anIterator )
inlinestatic

Definition at line 85 of file OpInSTLContainers.h.

86 {
87 return aContainer.insert(anIterator);
88 }

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