VCCC  2024.05
VisualCamp Common C++ library
repeat_view< W, Bound > Class Template Reference

#include </home/jarvis/actions-runner/jarvis-vccc-2/_work/vccc/vccc/include/vccc/__ranges/views/repeat_view.hpp>

+ Inheritance diagram for repeat_view< W, Bound >:

Classes

class  iterator
 

Public Member Functions

 repeat_view ()
 
constexpr repeat_view (const W &value, Bound bound=Bound())
 
constexpr repeat_view (W &&value, Bound bound=Bound())
 
template<typename... WArgs, typename... BoundArgs, std::enable_if_t< conjunction< constructible_from< W, WArgs... >, constructible_from< Bound, BoundArgs... > >::value, int > = 0>
constexpr repeat_view (std::piecewise_construct_t, std::tuple< WArgs... > value_args, std::tuple< BoundArgs... > bound_args=std::tuple<>())
 
VCCC_ADDRESSOF_CONSTEXPR iterator begin () const
 
template<typename B = Bound, std::enable_if_t< negation< same_as< B, unreachable_sentinel_t > > ::value, int > = 0>
VCCC_ADDRESSOF_CONSTEXPR iterator end () const
 
template<typename B = Bound, std::enable_if_t< same_as< B, unreachable_sentinel_t > ::value, int > = 0>
constexpr unreachable_sentinel_t end () const
 
template<typename B = Bound, std::enable_if_t< negation< same_as< B, unreachable_sentinel_t > > ::value, int > = 0>
constexpr auto size () const
 
- Public Member Functions inherited from view_interface< repeat_view< W, unreachable_sentinel_t > >
constexpr bool empty ()
 
constexpr bool empty ()
 
constexpr bool empty () const
 
constexpr bool empty () const
 
constexpr auto cbegin ()
 
constexpr auto cbegin () const
 
constexpr auto cend ()
 
constexpr auto cend () const
 
constexpr operator bool ()
 
constexpr operator bool () const
 
constexpr auto data ()
 
constexpr auto data () const
 
constexpr auto size ()
 
constexpr auto size () const
 
constexpr decltype(auto) front ()
 
constexpr decltype(auto) front () const
 
constexpr decltype(auto) back ()
 
constexpr decltype(auto) back () const
 
constexpr decltype(auto) operator[] (range_difference_t< R > n)
 
constexpr decltype(auto) operator[] (range_difference_t< R > n) const
 

Additional Inherited Members

- Public Types inherited from view_interface< repeat_view< W, unreachable_sentinel_t > >
using $vccc_derived = repeat_view< W, unreachable_sentinel_t >
 

Constructor & Destructor Documentation

◆ repeat_view() [1/4]

repeat_view ( )
inline

◆ repeat_view() [2/4]

constexpr repeat_view ( const W &  value,
Bound  bound = Bound() 
)
inlineexplicitconstexpr

◆ repeat_view() [3/4]

constexpr repeat_view ( W &&  value,
Bound  bound = Bound() 
)
inlineexplicitconstexpr

◆ repeat_view() [4/4]

constexpr repeat_view ( std::piecewise_construct_t  ,
std::tuple< WArgs... >  value_args,
std::tuple< BoundArgs... >  bound_args = std::tuple<>() 
)
inlineconstexpr

Member Function Documentation

◆ begin()

VCCC_ADDRESSOF_CONSTEXPR iterator begin ( ) const
inline

◆ end() [1/2]

VCCC_ADDRESSOF_CONSTEXPR iterator end ( ) const
inline

◆ end() [2/2]

constexpr unreachable_sentinel_t end ( ) const
inlineconstexpr

◆ size()

constexpr auto size ( ) const
inlineconstexpr

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