|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
C++20 Ranges support and adaptors for Aleph-w containers. More...
#include <algorithm>#include <iterator>#include <concepts>#include <type_traits>#include <utility>#include <tuple>#include <functional>Go to the source code of this file.
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::detail |
Macros | |
| #define | ALEPH_HAS_RANGES 0 |
| #define | ALEPH_HAS_STRIDE 0 |
| #define | ALEPH_HAS_REPEAT 0 |
| #define | ALEPH_HAS_ZIP 0 |
| #define | ALEPH_HAS_ENUMERATE 0 |
| #define | ALEPH_HAS_JOIN 1 |
Functions | |
| template<typename Range , typename Cmp > | |
| void | Aleph::sort_range (Range &r, Cmp cmp) |
| Sort a whole range in place, portably across the ranges divide. | |
| template<typename Range > | |
| void | Aleph::sort_range (Range &r) |
Sort a whole range in place using the default < ordering. | |
| template<typename Container , typename Pred > | |
| bool | Aleph::detail::fallback_all_of (const Container &c, Pred &&pred) |
| template<typename Container , typename Pred > | |
| bool | Aleph::detail::fallback_any_of (const Container &c, Pred &&pred) |
| template<typename Container , typename Pred > | |
| bool | Aleph::detail::fallback_none_of (const Container &c, Pred &&pred) |
| template<typename Container , typename T , typename BinaryOp > | |
| constexpr T | Aleph::detail::ranges_fold_left (Container &&c, T init, BinaryOp &&op) |
| Fallback fold_left using range-based for loop. | |
| template<typename Container , typename Pred > | |
| bool | Aleph::detail::ranges_all_of (const Container &c, Pred &&pred) |
| Fallback all_of using range-based for loop. | |
| template<typename Container , typename Pred > | |
| bool | Aleph::detail::ranges_any_of (const Container &c, Pred &&pred) |
| Fallback any_of using range-based for loop. | |
| template<typename Container , typename Pred > | |
| bool | Aleph::detail::ranges_none_of (const Container &c, Pred &&pred) |
| Fallback none_of using range-based for loop. | |
| template<typename Container , typename Pred > | |
| auto | Aleph::detail::ranges_count_if (const Container &c, Pred &&pred) |
| Fallback count_if using range-based for loop. | |
C++20 Ranges support and adaptors for Aleph-w containers.
This header provides:
Clang 14-15 with libstdc++ (GCC's standard library) has BROKEN std::ranges support. The combination fails to satisfy iterator concepts correctly, causing compilation errors like:
libc++ is Clang's native C++ standard library with full std::ranges support. libstdc++ is GCC's library; older Clang versions have subtle incompatibilities with its iterator concept implementations.
Definition in file ah-ranges.H.
| #define ALEPH_HAS_ENUMERATE 0 |
Definition at line 189 of file ah-ranges.H.
| #define ALEPH_HAS_JOIN 1 |
Definition at line 201 of file ah-ranges.H.
| #define ALEPH_HAS_RANGES 0 |
Definition at line 153 of file ah-ranges.H.
| #define ALEPH_HAS_REPEAT 0 |
Definition at line 177 of file ah-ranges.H.
| #define ALEPH_HAS_STRIDE 0 |
Definition at line 171 of file ah-ranges.H.
| #define ALEPH_HAS_ZIP 0 |
Definition at line 183 of file ah-ranges.H.