guanaqo 1.0.0-alpha.24
Utilities for scientific software
Loading...
Searching...
No Matches
Iteration & Ranges

Detailed Description

Range utilities such as set intersection views and enumeration adapters.

Files

file  enumerate.hpp
 enumerate() range adapter.
file  iter-adapter.hpp
 Adapter turning iterator pairs into a view.
file  set-intersection.hpp
 View for iterating the intersection of two sorted ranges.

Classes

struct  guanaqo::enumerate_t< Rng >
struct  guanaqo::iter_range_adapter< It >
struct  guanaqo::set_intersection_iterable< R1, R2, Comp, Proj1, Proj2 >

Functions

template<class Rng>
auto guanaqo::enumerate (Rng &&rng)
template<std::ranges::viewable_range R1, std::ranges::viewable_range R2, class Comp = std::ranges::less, class Proj1 = std::identity, class Proj2 = std::identity>
set_intersection_iterable< std::ranges::views::all_t< R1 >, std::ranges::views::all_t< R2 >, Comp, Proj1, Proj2 > guanaqo::iter_set_intersection (R1 &&r1, R2 &&r2, Comp comp={}, Proj1 proj1={}, Proj2 proj2={})

Function Documentation

◆ enumerate()

template<class Rng>
auto guanaqo::enumerate ( Rng && rng)

#include <guanaqo/enumerate.hpp>

Definition at line 72 of file enumerate.hpp.

◆ iter_set_intersection()

template<std::ranges::viewable_range R1, std::ranges::viewable_range R2, class Comp = std::ranges::less, class Proj1 = std::identity, class Proj2 = std::identity>
set_intersection_iterable< std::ranges::views::all_t< R1 >, std::ranges::views::all_t< R2 >, Comp, Proj1, Proj2 > guanaqo::iter_set_intersection ( R1 && r1,
R2 && r2,
Comp comp = {},
Proj1 proj1 = {},
Proj2 proj2 = {} )

#include <guanaqo/set-intersection.hpp>

Definition at line 120 of file set-intersection.hpp.