#include <algorithm>
#include <vector>
Go to the source code of this file.
|
template<typename TV , typename TE , class = typename std::enable_if<std::is_convertible<TE,TV>::value>::type> |
bool | utils::algorithms::is_in (const std::vector< TV > &vect, const TE &elem) |
| Returns true if an item of type TE is in a vector of TV objects (provided that TE can be converted into TV), false otherwise. More...
|
|
template<typename TV , typename TE , class = typename std::enable_if<std::is_convertible<TE,TV>::value>::type> |
bool | utils::algorithms::any_of_is_in (const std::vector< TV > &vect, const std::vector< TE > &elems) |
| Returns true if any of the items of a vector<TE> is contained in another vector<TV> (provided that TE can be converted into TV) More...
|
|