Template Function Pennylane::Util::findElementInVector¶
Defined in File Util.hpp
Function Documentation¶
-
template<typename T>
inline auto Pennylane::Util::findElementInVector(const std::vector<T> &vec, const T &element)¶ Find an element in a vector.
- Template Parameters
T – Data type.
- Parameters
vec – Vector to check.
element – Element to find.
- Returns
std::vector<T>::const_iterator Iterator to the found element, or vec.end() if the element is not found.
api/function_Util_8hpp_1a7f5c4eb130e3b8ff0ffe9770b4b556fa
Download Python script
Download Notebook
View on GitHub