Template Function Pennylane::Util::operator==(const std::vector<T, AllocA>&, const std::vector<T, AllocB>&)

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