![]() |
Dataflow Runtime API
2.7.4.0
|
Utility methods for class std::vector. More...
#include <Imt.Base.OS.WinEC7/VectorUtils.h>
Static Public Member Functions | |
template<class T > | |
static void | removeElements (std::vector< T > &vector, const T &val) |
Erases elements in a vector that match a specified value. | |
template<class T > | |
static bool | includes (const std::vector< T > &vector, const T &val) |
Tests whether the value is included in the vector. More... | |
template<class T > | |
static int32_t | findFirstIndex (const std::vector< T > &vector, const T &val) |
Returns the index of the first element which matches the specified value. More... | |
template<class T > | |
static void | eraseAll (std::vector< T > &vector) |
Erase all elements. | |
template<class T > | |
static void | deleteAll (std::vector< T > &vector) |
Delete all elements (allocated memory). | |
Utility methods for class std::vector.
Pure static class.
|
inlinestatic |
Returns the index of the first element which matches the specified value.
-1 if not found.
|
inlinestatic |
Tests whether the value is included in the vector.
The operator== used to determine the match between an element and the specified value must impose an equivalence relation between its operands.
vector | The vector to operate on |
val | The value to search in the vector |