summaryrefslogtreecommitdiff
path: root/lib/collections.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/collections.h')
-rw-r--r--lib/collections.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/collections.h b/lib/collections.h
index 7d78ef9..943b986 100644
--- a/lib/collections.h
+++ b/lib/collections.h
@@ -149,11 +149,14 @@ template<typename T> struct pair_range {
{
return pair.first;
}
+
constexpr auto &
end() const noexcept
{
return pair.second;
}
+
const std::pair<T, T> & pair;
};
+
template<typename T> pair_range(std::pair<T, T>) -> pair_range<T>;