VCCC  2024.05
VisualCamp Common C++ library
take_view< V > Class Template Reference

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

+ Inheritance diagram for take_view< V >:

Classes

class  sentinel
 

Public Member Functions

 take_view ()=default
 
constexpr take_view (V base, range_difference_t< V > count)
 
template<typename T = V, std::enable_if_t< copy_constructible< T >::value, int > = 0>
constexpr V base () const &
 
constexpr V base () &&
 
template<typename T = V, std::enable_if_t< conjunction< negation< simple_view< T > >, sized_range< T >, random_access_range< T > >::value, int > = 0>
constexpr auto begin ()
 
template<typename T = V, std::enable_if_t< conjunction< negation< simple_view< T > >, sized_range< T >, negation< random_access_range< T > > >::value, int > = 0>
constexpr auto begin ()
 
template<typename T = V, std::enable_if_t< conjunction< negation< simple_view< T > >, negation< sized_range< T > > >::value, int > = 0>
constexpr auto begin ()
 
template<typename T = const V, std::enable_if_t< conjunction< range< T >, sized_range< T >, random_access_range< T > >::value, int > = 0>
constexpr auto begin () const
 
template<typename T = const V, std::enable_if_t< conjunction< range< T >, sized_range< T >, negation< random_access_range< T > > >::value, int > = 0>
constexpr auto begin () const
 
template<typename T = const V, std::enable_if_t< conjunction< range< T >, negation< sized_range< T > > >::value, int > = 0>
constexpr auto begin () const
 
template<typename T = V, std::enable_if_t< conjunction< negation< simple_view< T > >, sized_range< T >, random_access_range< T > >::value, int > = 0>
constexpr auto end ()
 
template<typename T = V, std::enable_if_t< conjunction< negation< simple_view< T > >, sized_range< T >, negation< random_access_range< T > > >::value, int > = 0>
constexpr default_sentinel_t end ()
 
template<typename T = V, std::enable_if_t< conjunction< negation< simple_view< T > >, negation< sized_range< T > > >::value, int > = 0>
constexpr sentinel< false > end ()
 
template<typename T = const V, std::enable_if_t< conjunction< range< T >, sized_range< T >, random_access_range< T > >::value, int > = 0>
constexpr auto end () const
 
template<typename T = V, std::enable_if_t< conjunction< range< T >, sized_range< T >, negation< random_access_range< T > > >::value, int > = 0>
constexpr default_sentinel_t end () const
 
template<typename T = V, std::enable_if_t< conjunction< range< T >, negation< sized_range< T > > >::value, int > = 0>
constexpr sentinel< true > end () const
 
template<typename T = V, std::enable_if_t< ranges::sized_range< T >::value, int > = 0>
constexpr auto size ()
 
template<typename T = const V, std::enable_if_t< ranges::sized_range< T >::value, int > = 0>
constexpr auto size () const
 
- Public Member Functions inherited from view_interface< take_view< V > >
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< take_view< V > >
using $vccc_derived = take_view< V >
 

Constructor & Destructor Documentation

◆ take_view() [1/2]

take_view ( )
default

◆ take_view() [2/2]

constexpr take_view ( base,
range_difference_t< V >  count 
)
inlineexplicitconstexpr

Member Function Documentation

◆ base() [1/2]

constexpr V base ( ) &&
inlineconstexpr

◆ base() [2/2]

constexpr V base ( ) const &
inlineconstexpr

◆ begin() [1/6]

constexpr auto begin ( )
inlineconstexpr

◆ begin() [2/6]

constexpr auto begin ( )
inlineconstexpr

◆ begin() [3/6]

constexpr auto begin ( )
inlineconstexpr

◆ begin() [4/6]

constexpr auto begin ( ) const
inlineconstexpr

◆ begin() [5/6]

constexpr auto begin ( ) const
inlineconstexpr

◆ begin() [6/6]

constexpr auto begin ( ) const
inlineconstexpr

◆ end() [1/6]

constexpr auto end ( )
inlineconstexpr

◆ end() [2/6]

constexpr default_sentinel_t end ( )
inlineconstexpr

◆ end() [3/6]

constexpr sentinel<false> end ( )
inlineconstexpr

◆ end() [4/6]

constexpr auto end ( ) const
inlineconstexpr

◆ end() [5/6]

constexpr default_sentinel_t end ( ) const
inlineconstexpr

◆ end() [6/6]

constexpr sentinel<true> end ( ) const
inlineconstexpr

◆ size() [1/2]

constexpr auto size ( )
inlineconstexpr

◆ size() [2/2]

constexpr auto size ( ) const
inlineconstexpr

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