Skip to content
Snippets Groups Projects
Commit 4f2a24d7 authored by Philip Trettner's avatar Philip Trettner
Browse files

Merge branch 'jn/develop' into 'develop'

Replace postfix ++ with prefix

See merge request !103
parents 25cfdc08 7ed9d364
No related branches found
No related tags found
1 merge request!103Replace postfix ++ with prefix
......@@ -61,7 +61,7 @@ template <class RangeT, class KeyT>
auto min_e = it;
auto min_v = key(*it);
it++;
++it;
while (it != e)
{
auto v = key(*it);
......@@ -70,7 +70,7 @@ template <class RangeT, class KeyT>
min_v = v;
min_e = it;
}
it++;
++it;
}
return *min_e;
......@@ -86,7 +86,7 @@ template <class RangeT, class KeyT>
auto max_e = it;
auto max_v = key(*it);
it++;
++it;
while (it != e)
{
auto v = key(*it);
......@@ -95,7 +95,7 @@ template <class RangeT, class KeyT>
max_v = v;
max_e = it;
}
it++;
++it;
}
return *max_e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment