Implement make_range · alessandro90/cpputils@eabaa1b · GitHub
Skip to content

Commit eabaa1b

Browse files
committed
Implement make_range
1 parent 211fe03 commit eabaa1b

4 files changed

Lines changed: 111 additions & 0 deletions

File tree

‎src/include/cpputils/functional/utils.hpp‎

Lines changed: 63 additions & 0 deletions

‎src/include/cpputils/meta/traits.hpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ inline constexpr auto is_duration_v = is_duration<D>::value;
7474
template <typename D>
7575
concept duration = is_duration_v<D>;
7676

77+
template <typename F, typename R, typename... Args>
78+
concept invocable_r = std::is_invocable_r_v<R, F, Args...>;
79+
7780
template <typename T>
7881
concept pair_like =
7982
requires (T t) {

‎tests/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ ${TEST_PATH}/operator_sections_test.cpp
3535
${TEST_PATH}/container_views_test.cpp
3636
${TEST_PATH}/lazy_test.cpp
3737
${TEST_PATH}/benchmark_test.cpp
38+
${TEST_PATH}/range_maker_test.cpp
3839
)
3940

4041
add_executable(cpputils_test ${TEST_FILES})

‎tests/range_maker_test.cpp‎

Lines changed: 44 additions & 0 deletions

0 commit comments

Comments
 (0)