Iros
 
Loading...
Searching...
No Matches
di::container::detail::GenerateFunction Struct Reference

#include <di/container/algorithm/generate.h>

Public Member Functions

template<concepts::Iterator Out, concepts::SentinelFor< Out > Sent, concepts::CopyConstructible F>
requires (concepts::Invocable<F&> && concepts::IndirectlyWritable<Out, meta::InvokeResult<F&>>)
constexpr auto operator() (Out output, Sent last, F gen) const -> Out
 
template<typename Con, concepts::CopyConstructible F>
requires (concepts::Invocable<F&> && concepts::OutputContainer<Con, meta::InvokeResult<F&>>)
constexpr auto operator() (Con &&container, F gen) const -> meta::BorrowedIterator< Con >
 

Member Function Documentation

◆ operator()() [1/2]

template<typename Con, concepts::CopyConstructible F>
requires (concepts::Invocable<F&> && concepts::OutputContainer<Con, meta::InvokeResult<F&>>)
auto di::container::detail::GenerateFunction::operator() ( Con && container,
F gen ) const -> meta::BorrowedIterator<Con>
inlineconstexpr

◆ operator()() [2/2]

template<concepts::Iterator Out, concepts::SentinelFor< Out > Sent, concepts::CopyConstructible F>
requires (concepts::Invocable<F&> && concepts::IndirectlyWritable<Out, meta::InvokeResult<F&>>)
auto di::container::detail::GenerateFunction::operator() ( Out output,
Sent last,
F gen ) const -> Out
inlineconstexpr

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