C++20 modernization: remove trivial != operator definitions
Those are no longer needed thanks to expression rewriting.dprior
parent
3ab9be71c8
commit
2bfa311636
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004-2011 Ondra Kamenik
|
* Copyright © 2004-2011 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -245,11 +245,6 @@ public:
|
||||||
{
|
{
|
||||||
return ptr == it.ptr;
|
return ptr == it.ptr;
|
||||||
}
|
}
|
||||||
bool
|
|
||||||
operator!=(const _Self& it) const
|
|
||||||
{
|
|
||||||
return ptr != it.ptr;
|
|
||||||
}
|
|
||||||
_TRef
|
_TRef
|
||||||
operator*() const
|
operator*() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004-2011 Ondra Kamenik
|
* Copyright © 2004-2011 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -120,12 +120,6 @@ Vector::operator==(const Vector& y) const
|
||||||
return ConstVector(*this) == y;
|
return ConstVector(*this) == y;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
Vector::operator!=(const Vector& y) const
|
|
||||||
{
|
|
||||||
return ConstVector(*this) != y;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Vector::operator<(const Vector& y) const
|
Vector::operator<(const Vector& y) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004-2011 Ondra Kamenik
|
* Copyright © 2004-2011 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -110,7 +110,6 @@ public:
|
||||||
|
|
||||||
// Exact equality.
|
// Exact equality.
|
||||||
bool operator==(const Vector& y) const;
|
bool operator==(const Vector& y) const;
|
||||||
bool operator!=(const Vector& y) const;
|
|
||||||
// Lexicographic ordering.
|
// Lexicographic ordering.
|
||||||
bool operator<(const Vector& y) const;
|
bool operator<(const Vector& y) const;
|
||||||
bool operator<=(const Vector& y) const;
|
bool operator<=(const Vector& y) const;
|
||||||
|
@ -220,11 +219,6 @@ public:
|
||||||
}
|
}
|
||||||
// Exact equality
|
// Exact equality
|
||||||
bool operator==(const ConstVector& y) const;
|
bool operator==(const ConstVector& y) const;
|
||||||
bool
|
|
||||||
operator!=(const ConstVector& y) const
|
|
||||||
{
|
|
||||||
return !operator==(y);
|
|
||||||
}
|
|
||||||
// Lexicographic ordering
|
// Lexicographic ordering
|
||||||
bool operator<(const ConstVector& y) const;
|
bool operator<(const ConstVector& y) const;
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004 Ondra Kamenik
|
* Copyright © 2004 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -121,11 +121,6 @@ public:
|
||||||
Equivalence(const Equivalence& e, int i1, int i2);
|
Equivalence(const Equivalence& e, int i1, int i2);
|
||||||
|
|
||||||
bool operator==(const Equivalence& e) const;
|
bool operator==(const Equivalence& e) const;
|
||||||
bool
|
|
||||||
operator!=(const Equivalence& e) const
|
|
||||||
{
|
|
||||||
return !operator==(e);
|
|
||||||
}
|
|
||||||
[[nodiscard]] int
|
[[nodiscard]] int
|
||||||
getN() const
|
getN() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004 Ondra Kamenik
|
* Copyright © 2004 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -81,11 +81,6 @@ public:
|
||||||
{
|
{
|
||||||
return nvs == td.nvs && sym == td.sym;
|
return nvs == td.nvs && sym == td.sym;
|
||||||
}
|
}
|
||||||
bool
|
|
||||||
operator!=(const TensorDimens& td) const
|
|
||||||
{
|
|
||||||
return !operator==(td);
|
|
||||||
}
|
|
||||||
|
|
||||||
[[nodiscard]] int
|
[[nodiscard]] int
|
||||||
dimen() const
|
dimen() const
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004 Ondra Kamenik
|
* Copyright © 2004 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -120,11 +120,6 @@ public:
|
||||||
delete[] data;
|
delete[] data;
|
||||||
}
|
}
|
||||||
bool operator==(const IntSequence& s) const;
|
bool operator==(const IntSequence& s) const;
|
||||||
bool
|
|
||||||
operator!=(const IntSequence& s) const
|
|
||||||
{
|
|
||||||
return !operator==(s);
|
|
||||||
}
|
|
||||||
int&
|
int&
|
||||||
operator[](int i)
|
operator[](int i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -131,11 +131,6 @@ public:
|
||||||
{
|
{
|
||||||
return dim == it.dim && run == it.run;
|
return dim == it.dim && run == it.run;
|
||||||
}
|
}
|
||||||
bool
|
|
||||||
operator!=(const symiterator& it)
|
|
||||||
{
|
|
||||||
return !operator==(it);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* The class SymmetrySet defines a set of symmetries of the given length
|
/* The class SymmetrySet defines a set of symmetries of the given length
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2004 Ondra Kamenik
|
* Copyright © 2004 Ondra Kamenik
|
||||||
* Copyright © 2019-2023 Dynare Team
|
* Copyright © 2019-2024 Dynare Team
|
||||||
*
|
*
|
||||||
* This file is part of Dynare.
|
* This file is part of Dynare.
|
||||||
*
|
*
|
||||||
|
@ -155,11 +155,6 @@ public:
|
||||||
{
|
{
|
||||||
return offset == n.offset;
|
return offset == n.offset;
|
||||||
}
|
}
|
||||||
bool
|
|
||||||
operator!=(const index& n) const
|
|
||||||
{
|
|
||||||
return offset != n.offset;
|
|
||||||
}
|
|
||||||
[[nodiscard]] const IntSequence&
|
[[nodiscard]] const IntSequence&
|
||||||
getCoor() const
|
getCoor() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue