summaryrefslogtreecommitdiff
path: root/content/datastructures/persistent.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-20 01:50:40 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-20 01:50:40 +0100
commitc9365cd20105e36bae0b2145b69f94f6f93195d6 (patch)
treeb1c318a87ff6c3aff3a1fba431b29bef81a9157f /content/datastructures/persistent.cpp
parent3c174f527d8b16e84b3aaaf7b448469bb9682566 (diff)
fix overlong lines
Diffstat (limited to 'content/datastructures/persistent.cpp')
-rw-r--r--content/datastructures/persistent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/datastructures/persistent.cpp b/content/datastructures/persistent.cpp
index 9f38806..ed2f891 100644
--- a/content/datastructures/persistent.cpp
+++ b/content/datastructures/persistent.cpp
@@ -7,7 +7,7 @@ struct persistent {
: time(time), data(1, {2*time, value}) {}
T get(int t) {
- return prev(ranges::upper_bound(data,pair{2*t+1, T{}}))->second;
+ return ranges::upper_bound(data,pair{2*t+1, T{}})[-1].second;
}
int set(T value) {