diff --git a/CMakeLists.txt b/CMakeLists.txt index 06ca11b..3c9653c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.18.10) +set(BLT_VERSION 0.18.11) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/ranges.h b/include/blt/std/ranges.h index b54dff7..08cd392 100644 --- a/include/blt/std/ranges.h +++ b/include/blt/std/ranges.h @@ -163,6 +163,18 @@ namespace blt return enumerator{container.begin(), container.end()}; } + template + static inline auto enumerate(const T(&container)[size]) + { + return enumerator{&container[0], &container[size]}; + } + + template + static inline auto enumerate(T(&container)[size]) + { + return enumerator{&container[0], &container[size]}; + } + template static inline auto enumerate(T& container) { diff --git a/libraries/parallel-hashmap b/libraries/parallel-hashmap index 8a889d3..d88c5e1 160000 --- a/libraries/parallel-hashmap +++ b/libraries/parallel-hashmap @@ -1 +1 @@ -Subproject commit 8a889d3699b3c09ade435641fb034427f3fd12b6 +Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b