aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/TslHelper.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-19 21:35:31 +0200
committer GitHub <noreply@github.com>2024-07-19 21:35:31 +0200
commitd1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (patch)
tree38015e5729afbb98cf520e2cf26d8a4623d32f2f /src/openvic-simulation/utility/TslHelper.hpp
parente0518bee9b4c164f40716a8033b5e207c2060c0b (diff)
parent03647d2249f72b6545628bb844685f87c4581062 (diff)
Merge pull request #176 from OpenVicProject/format-cleanup
Cleanup: inheritance, const movable variables, code formatting
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;
}