Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
graphle::detail::range_adaptor_closure< G, L, Args > Struct Template Reference

#include <range_utils.hpp>

Public Member Functions

template<typename... UArgs>
requires (std::is_same_v<std::remove_cvref_t<UArgs>, Args> && ...)
constexpr range_adaptor_closure (UArgs &&... args)
 
template<rng::viewable_range R>
constexpr auto operator() (R &&range) const &
 
template<rng::viewable_range R>
constexpr auto operator() (R &&range) &&
 

Public Attributes

std::tuple< Args... > args
 

Detailed Description

template<template< typename... > typename G, meta::list_of_types L, typename... Args>
struct graphle::detail::range_adaptor_closure< G, L, Args >

Boilerplate range adaptor closure for std::ranges compatibility for view type G.

Template Parameters
GThe template of a view type, accepting a range and the types in L as its arguments.
LA list of types passed to G as template arguments together with the range.
ArgsArguments that can be used to construct a view of type G<Range, L...>.

Definition at line 36 of file range_utils.hpp.

Constructor & Destructor Documentation

◆ range_adaptor_closure()

template<template< typename... > typename G, meta::list_of_types L, typename... Args>
template<typename... UArgs>
requires (std::is_same_v<std::remove_cvref_t<UArgs>, Args> && ...)
constexpr graphle::detail::range_adaptor_closure< G, L, Args >::range_adaptor_closure ( UArgs &&...  args)
inlineexplicitconstexpr

Definition at line 41 of file range_utils.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<template< typename... > typename G, meta::list_of_types L, typename... Args>
template<rng::viewable_range R>
constexpr auto graphle::detail::range_adaptor_closure< G, L, Args >::operator() ( R &&  range) &&
inlineconstexpr

Definition at line 55 of file range_utils.hpp.

◆ operator()() [2/2]

template<template< typename... > typename G, meta::list_of_types L, typename... Args>
template<rng::viewable_range R>
constexpr auto graphle::detail::range_adaptor_closure< G, L, Args >::operator() ( R &&  range) const &
inlineconstexpr

Definition at line 46 of file range_utils.hpp.

Member Data Documentation

◆ args

template<template< typename... > typename G, meta::list_of_types L, typename... Args>
std::tuple<Args...> graphle::detail::range_adaptor_closure< G, L, Args >::args

Definition at line 37 of file range_utils.hpp.


The documentation for this struct was generated from the following file: