Skip to content
Snippets Groups Projects
Commit 3825e8cf authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: use std::equal in LUT operator == (code review)

parent 9c447ed1
No related branches found
No related tags found
No related merge requests found
......@@ -276,12 +276,8 @@ public:
template <unsigned int VDim>
bool operator==(const LUT<VDim> & lhs, const LUT<VDim> & rhs)
{
bool axisComparison = true;
for (unsigned int i = 0; i < VDim; i++)
{
axisComparison = axisComparison && lhs.Axis[i] == rhs.Axis[i];
}
return axisComparison && lhs.Array == rhs.Array;
return std::equal(std::begin(lhs.Array), std::end(lhs.Array), std::begin(rhs.Array) )
&& lhs.Array == rhs.Array;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment