This is an example of how the classify() function returns std::ranges::dangling
when range
is a temporary.
#include <array>
#include <exptl/algorithm>
#include <ranges>
#include <type_traits>
static_assert(
0, std::array{[](int v) { return v; }}))>,
std::ranges::dangling>);
constexpr classify(T const value, In &&range)
Checks a value against a range of predicates and returns a vector of iterators to the satisfied predi...
Definition: algorithm.hpp:101