SeqAn3  3.1.0-rc.1
The Modern C++ library for sequence analysis.
seqan3::detail::persist_fn Class Reference

[adaptor_def] More...

#include <seqan3/core/detail/persist_view.hpp>

+ Inheritance diagram for seqan3::detail::persist_fn:

Private Types

using base_t = adaptor_base< persist_fn >
 Type of the CRTP-base.
 

Static Private Member Functions

template<std::ranges::viewable_range urng_t>
static auto impl (urng_t &&urange)
 For ranges that are viewable, delegate to std::views::all. More...
 
template<std::ranges::range urng_t>
static auto impl (urng_t &&urange)
 For ranges that are not views and not lvalue-references, call view_persist's constructor. More...
 

Private Attributes

friend base_t
 Befriend the base class so it can call impl().
 

Additional Inherited Members

- Public Member Functions inherited from seqan3::detail::adaptor_base< persist_fn >
constexpr auto operator() (urng_t &&urange) &&
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
constexpr auto operator() (urng_t &&urange) const &
 Function-style overload for ranges.
 
constexpr adaptor_base (adaptor_base const &) noexcept=default
 Defaulted.
 
constexpr adaptor_base (adaptor_base &&) noexcept=default
 Defaulted.
 
constexpr adaptor_base (stored_args_ts ... args) noexcept(noexcept(std::tuple< stored_args_ts... >{std::forward< stored_args_ts >(args)...}))
 Constructor with possible arguments; becomes a default constructor for adaptors without args.
 
constexpr adaptor_baseoperator= (adaptor_base const &) noexcept=default
 Defaulted.
 
constexpr adaptor_baseoperator= (adaptor_base &&) noexcept=default
 Defaulted.
 
 ~adaptor_base () noexcept=default
 Defaulted.
 

Detailed Description

[adaptor_def]

View adaptor definition for detail::persist. !

Member Function Documentation

◆ impl() [1/2]

template<std::ranges::viewable_range urng_t>
static auto seqan3::detail::persist_fn::impl ( urng_t &&  urange)
inlinestaticprivate

For ranges that are viewable, delegate to std::views::all.

Returns
An instance of std::views::all.

◆ impl() [2/2]

template<std::ranges::range urng_t>
static auto seqan3::detail::persist_fn::impl ( urng_t &&  urange)
inlinestaticprivate

For ranges that are not views and not lvalue-references, call view_persist's constructor.

Returns
An instance of seqan3::detail::view_persist.

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