di 0.1.0
Loading...
Searching...
No Matches
di::container::RepeatView< T, Bound > Class Template Reference

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

Inheritance diagram for di::container::RepeatView< T, Bound >:
di::container::ViewInterface< RepeatView< T, UnreachableSentinel > > di::meta::EnableView< RepeatView< T, UnreachableSentinel > >

Public Member Functions

constexpr RepeatView ()=default
constexpr RepeatView (T const &value, Bound bound=Bound())
constexpr RepeatView (T &&value, Bound bound=Bound())
constexpr auto begin () const -> Iterator
constexpr auto end () const -> Iterator
constexpr auto end () const -> UnreachableSentinel requires(!is_bounded)
constexpr auto size () const
Public Member Functions inherited from di::container::ViewInterface< RepeatView< T, UnreachableSentinel > >
constexpr auto empty () -> bool requires(concepts::SizedContainer< RepeatView< T, UnreachableSentinel > >||concepts::ForwardContainer< RepeatView< T, UnreachableSentinel > >)
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

◆ RepeatView() [1/3]

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
di::container::RepeatView< T, Bound >::RepeatView ( )
constexprdefault

◆ RepeatView() [2/3]

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
di::container::RepeatView< T, Bound >::RepeatView ( T const & value,
Bound bound = Bound() )
inlineexplicitconstexpr

◆ RepeatView() [3/3]

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
di::container::RepeatView< T, Bound >::RepeatView ( T && value,
Bound bound = Bound() )
inlineexplicitconstexpr

Member Function Documentation

◆ begin()

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
auto di::container::RepeatView< T, Bound >::begin ( ) const->Iterator
inlineconstexpr

◆ end() [1/2]

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
auto di::container::RepeatView< T, Bound >::end ( ) const->Iterator
inlineconstexpr

◆ end() [2/2]

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
auto di::container::RepeatView< T, Bound >::end ( ) const->UnreachableSentinelrequires(!is_bounded)
inlineconstexpr

◆ size()

template<concepts::Movable T, concepts::Semiregular Bound = UnreachableSentinel>
auto di::container::RepeatView< T, Bound >::size ( ) const
inlineconstexpr

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