cMHN 1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
equal.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_CONTAINER_FUNCTIONS_EQUAL_H
4#define pRC_CORE_CONTAINER_FUNCTIONS_EQUAL_H
5
9
10namespace pRC
11{
12 template<Allocation A1, Allocation A2, class TA, class TB, Size... Ns>
13 requires IsInvocable<Equal, TA, TB>
14 static inline constexpr auto operator==(
17 {
18 for(Index i = 0; i < Sizes<Ns...>::size(); ++i)
19 {
20 if(lhs[i] != rhs[i])
21 {
22 return false;
23 }
24 }
25 return true;
26 }
27}
28#endif // pRC_CORE_CONTAINER_FUNCTIONS_EQUAL_H
Definition declarations.hpp:12
static constexpr auto size()
Definition sequence.hpp:69
int i
Definition gmock-matchers-comparisons_test.cc:603
Definition cholesky.hpp:10
Size Index
Definition basics.hpp:32
std::size_t Size
Definition basics.hpp:31
static constexpr auto operator==(JacobiRotation< TA > const &a, JacobiRotation< TB > const &b)
Definition jacobi_rotation.hpp:284
Allocation
Definition allocation.hpp:18