#include <vector>#include <string>#include <algorithm>#include <cassert>#include <iostream>#include <stdlib.h>

Go to the source code of this file.
Data Structures | |
| class | sofa::helper::vector< T, Alloc > |
| Same as std::vector, + range checking on operator[ ]. More... | |
Namespaces | |
| namespace | sofa |
| Main SOFA namespace. | |
| namespace | sofa::helper |
| Utility helper classes that we need, but that are not the core of the plateform. | |
Functions | |
vector class-related methods | |
| template<class T1 , class T2 > | |
| void | sofa::helper::remove (T1 &v, const T2 &elem) |
| Remove the first occurence of a given value. | |
| template<class T1 , class T2 > | |
| void | sofa::helper::removeValue (T1 &v, const T2 &elem) |
| Remove the first occurence of a given value. | |
| template<class T , class TT > | |
| void | sofa::helper::removeIndex (std::vector< T, TT > &v, size_t index) |
| Remove value at given index, replace it by the value at the last index, other values are not changed. | |
1.5.7.1