di 0.1.0
Loading...
Searching...
No Matches
di::container::TakeWhileView< View, Pred > Class Template Reference

#include <di/container/view/take_while_view.h>

Inheritance diagram for di::container::TakeWhileView< View, Pred >:
di::container::ViewInterface< TakeWhileView< View, Pred > > di::meta::EnableView< TakeWhileView< View, Pred > >

Public Member Functions

 TakeWhileView ()=default
constexpr TakeWhileView (View base, Pred predicate)
constexpr auto base () const &-> View requires(concepts::CopyConstructible< View >)
constexpr auto base () &&-> View
constexpr auto pred () const -> Pred const &
constexpr auto begin ()
constexpr auto begin () const
constexpr auto end ()
constexpr auto end () const
Public Member Functions inherited from di::container::ViewInterface< TakeWhileView< View, Pred > >
constexpr auto empty () -> bool requires(concepts::SizedContainer< TakeWhileView< View, Pred > >||concepts::ForwardContainer< TakeWhileView< View, Pred > >)
constexpr operator bool ()
constexpr auto cbegin ()
constexpr auto cend ()
constexpr auto data ()
constexpr auto size ()
constexpr auto front ()
constexpr auto back ()
constexpr auto operator[] (meta::ContainerSSizeType< Cont > n) -> decltype(auto)
constexpr auto at (meta::ContainerSSizeType< Cont > n) -> Optional< meta::ContainerReference< Cont > >

Constructor & Destructor Documentation

◆ TakeWhileView() [1/2]

template<concepts::View View, typename Pred>
di::container::TakeWhileView< View, Pred >::TakeWhileView ( )
default

◆ TakeWhileView() [2/2]

template<concepts::View View, typename Pred>
di::container::TakeWhileView< View, Pred >::TakeWhileView ( View base,
Pred predicate )
inlineexplicitconstexpr

Member Function Documentation

◆ base() [1/2]

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::base ( ) &&->View
inlineconstexpr

◆ base() [2/2]

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::base ( ) const &->Viewrequires(concepts::CopyConstructible< View >)
inlineconstexpr

◆ begin() [1/2]

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::begin ( )
inlineconstexpr

◆ begin() [2/2]

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::begin ( ) const
inlineconstexpr

◆ end() [1/2]

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::end ( )
inlineconstexpr

◆ end() [2/2]

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::end ( ) const
inlineconstexpr

◆ pred()

template<concepts::View View, typename Pred>
auto di::container::TakeWhileView< View, Pred >::pred ( ) const->Predconst &
inlineconstexpr

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