|
WarpX
|
#include <algorithm>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | utils |
| namespace | utils::algorithms |
Functions | |
| template<typename TV, typename TE, class = typename std::enable_if_t<std::is_convertible_v<TE,TV>>> | |
| 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. | |
| template<typename TV, typename TE, class = typename std::enable_if_t<std::is_convertible_v<TE,TV>>> | |
| 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). | |