5 #ifndef VCCC_ALGORITHM_RANGES_CONTAINS_SUBRANGE_HPP_
6 #define VCCC_ALGORITHM_RANGES_CONTAINS_SUBRANGE_HPP_
36 struct contains_subrange_niebloid {
38 typename I1,
typename S1,
typename I2,
typename S2,
39 typename Pred = ranges::equal_to,
typename Proj1 = identity,
typename Proj2 = identity,
40 std::enable_if_t<conjunction<
41 forward_iterator<I1>, sentinel_for<S1, I1>,
42 forward_iterator<I2>, sentinel_for<S2, I2>,
43 indirectly_comparable<I1, I2, Pred, Proj1, Proj2>
45 constexpr
bool operator()(I1 first1, S1 last1, I2 first2, S2 last2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {})
const {
46 return (first2 == last2) ||
47 !
ranges::search(first1, last1, first2, last2, pred, proj1, proj2).empty();
51 typename R1,
typename R2,
52 typename Pred = ranges::equal_to,
typename Proj1 = identity,
typename Proj2 = identity,
53 std::enable_if_t<conjunction<
56 indirectly_comparable<iterator_t<R1>, iterator_t<R2>, Pred, Proj1, Proj2>
58 constexpr
bool operator()(R1&& r1, R2&& r2, Pred pred = {}, Proj1 proj1 = {}, Proj2 proj2 = {})
const {
60 std::move(pred), std::move(proj1), std::move(proj2));
constexpr VCCC_INLINE_OR_STATIC detail::contains_subrange_niebloid contains_subrange
Definition: contains_subrange.hpp:66
constexpr VCCC_INLINE_OR_STATIC detail::search_niebloid search
Definition: search.hpp:87
constexpr VCCC_INLINE_OR_STATIC detail::begin_niebloid begin
returns an iterator to the beginning of a range
Definition: begin.hpp:116
constexpr VCCC_INLINE_OR_STATIC detail::end_niebloid end
returns a sentinel indicating the end of a range
Definition: end.hpp:120
#define VCCC_INLINE_OR_STATIC
Definition: inline_or_static.hpp:9
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35