diff --git a/include/blt/std/ranges.h b/include/blt/std/ranges.h index 0b70793..0bdf6f6 100644 --- a/include/blt/std/ranges.h +++ b/include/blt/std/ranges.h @@ -91,6 +91,12 @@ namespace blt return enumerator{container.begin(), container.end()}; } + template + static inline auto enumerate(T&& container) + { + return enumerator{container.begin(), container.end()}; + } + template struct range {