Skip to content

ext::DefaultEraser

Default erase policy for containers with iterators.

#include <linear_map.h>

Public Functions

Name
template <class T ,class Iterator > <br>T::iteratorerase(Iterator it, T * container)<br>Erases an element from a container with its default erase API.

Public Functions Documentation

function erase

cpp
template <class T ,
class Iterator >
static inline T::iterator erase(
    Iterator it,
    T * container
)

Erases an element from a container with its default erase API.

Parameters:

  • it The iterator pointing to the element.
  • container The host container.

Template Parameters:

  • T The container type.
  • Iterator The iterator type belonging to the container.

Return: The iterator as the result of call to the container's erase.


Updated on 2026-01-09 at 21:59:12 +0000