Template Function Pennylane::Util::operator==(const std::vector<T, AllocA>&, const std::vector<T, AllocB>&)¶
Defined in File TestHelpers.hpp
Function Documentation¶
-
template<class T, class AllocA, class AllocB>
bool Pennylane::Util::operator==(const std::vector<T, AllocA> &lhs, const std::vector<T, AllocB> &rhs)¶ Compare std::vectors with same elements data type but different allocators.
- Template Parameters
T – Element data type.
AllocA – Allocator for the first vector.
AllocB – Allocator for the second vector.
- Parameters
lhs – First vector
rhs – Second vector
- Returns
true
- Returns
false
api/function_TestHelpers_8hpp_1a4009747083589d82d56f976c67a73a14
Download Python script
Download Notebook
View on GitHub