Utility Rack
|
Example code demonstrating use of chops::erase_where
and chops::erase_where_if
.
More...
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include "utility/erase_where.hpp"
Functions | |
int | main () |
std::remove and std::remove_if move the found element(s) to the end of the container. The size of the collection does not chnange. erase must be subsequently called to actually remove the elements from the container. | |
Example code demonstrating use of chops::erase_where
and chops::erase_where_if
.
int main | ( | ) |
std::remove
and std::remove_if
move the found element(s) to the end of the container. The size of the collection does not chnange. erase
must be subsequently called to actually remove the elements from the container.
chops::erase_where
and chops::erase_where_if
are convenience functions that perform the erase-remove idiom.