aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/TslHelper.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-19 20:02:25 +0200
committer hop311 <hop3114@gmail.com>2024-07-19 20:02:25 +0200
commit03647d2249f72b6545628bb844685f87c4581062 (patch)
tree435dde45bb17dc12e74cc79bd5f25cc7a7ef8dca /src/openvic-simulation/utility/TslHelper.hpp
parenta673f89bb2705826b1c646365eab1775727372b7 (diff)
Cleanup: inheritance, const movable variables, code formattingformat-cleanup
Diffstat (limited to 'src/openvic-simulation/utility/TslHelper.hpp')
-rw-r--r--src/openvic-simulation/utility/TslHelper.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/openvic-simulation/utility/TslHelper.hpp b/src/openvic-simulation/utility/TslHelper.hpp
index 9d1ae77..a8bd0bd 100644
--- a/src/openvic-simulation/utility/TslHelper.hpp
+++ b/src/openvic-simulation/utility/TslHelper.hpp
@@ -70,39 +70,39 @@ namespace OpenVic {
return tmp;
}
- bool operator==(const ordered_iterator& rhs) const {
+ bool operator==(ordered_iterator const& rhs) const {
return m_iterator == rhs.m_iterator;
}
- bool operator!=(const ordered_iterator& rhs) const {
+ bool operator!=(ordered_iterator const& rhs) const {
return m_iterator != rhs.m_iterator;
}
- bool operator<(const ordered_iterator& rhs) const {
+ bool operator<(ordered_iterator const& rhs) const {
return m_iterator < rhs.m_iterator;
}
- bool operator>(const ordered_iterator& rhs) const {
+ bool operator>(ordered_iterator const& rhs) const {
return m_iterator > rhs.m_iterator;
}
- bool operator<=(const ordered_iterator& rhs) const {
+ bool operator<=(ordered_iterator const& rhs) const {
return m_iterator <= rhs.m_iterator;
}
- bool operator>=(const ordered_iterator& rhs) const {
+ bool operator>=(ordered_iterator const& rhs) const {
return m_iterator >= rhs.m_iterator;
}
- friend ordered_iterator operator+(difference_type n, const ordered_iterator& it) {
+ friend ordered_iterator operator+(difference_type n, ordered_iterator const& it) {
return n + it.m_iterator;
}
- ordered_iterator operator+(const ordered_iterator& rhs) const {
+ ordered_iterator operator+(ordered_iterator const& rhs) const {
return m_iterator + rhs.m_iterator;
}
- difference_type operator-(const ordered_iterator& rhs) const {
+ difference_type operator-(ordered_iterator const& rhs) const {
return m_iterator - rhs.m_iterator;
}