VCCC  2024.05
VisualCamp Common C++ library
transform_view< V, F > Class Template Reference

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

+ Inheritance diagram for transform_view< V, F >:

Classes

class  iterator
 
class  sentinel
 

Public Member Functions

 transform_view ()=default
 
constexpr transform_view (V base, F func)
 
template<typename V2 = V, std::enable_if_t< copy_constructible< V2 >::value, int > = 0>
constexpr V base () const &
 
constexpr V base () &&
 
constexpr iterator< false > begin ()
 
template<typename V2 = const V, typename F2 = const F, std::enable_if_t< conjunction< range< V2 >, regular_invocable< F2 &, ranges::range_reference_t< V2 >> >::value, int > = 0>
constexpr iterator< true > begin () const
 
template<typename V2 = V, std::enable_if_t< common_range< V2 >::value==false, int > = 0>
constexpr sentinel< false > end ()
 
template<typename V2 = V, std::enable_if_t< common_range< V2 >::value, int > = 0>
constexpr iterator< false > end ()
 
template<typename V2 = const V, typename F2 = const F, std::enable_if_t< conjunction< range< V2 >, negation< common_range< V2 >>, regular_invocable< F2 &, range_reference_t< V2 >> >::value, int > = 0>
constexpr sentinel< true > end () const
 
template<typename V2 = const V, typename F2 = const F, std::enable_if_t< conjunction< common_range< V2 >, regular_invocable< F2 &, range_reference_t< V2 >> >::value, int > = 0>
constexpr iterator< true > end () const
 
template<typename V2 = V, std::enable_if_t< sized_range< V2 >::value, int > = 0>
constexpr auto size ()
 
template<typename V2 = const V, std::enable_if_t< sized_range< V2 >::value, int > = 0>
constexpr auto size () const
 
- Public Member Functions inherited from view_interface< transform_view< V, F > >
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
 

Friends

template<bool Const>
class iterator
 

Additional Inherited Members

- Public Types inherited from view_interface< transform_view< V, F > >
using $vccc_derived = transform_view< V, F >
 

Constructor & Destructor Documentation

◆ transform_view() [1/2]

transform_view ( )
default

◆ transform_view() [2/2]

constexpr transform_view ( base,
func 
)
inlineexplicitconstexpr

Member Function Documentation

◆ base() [1/2]

constexpr V base ( ) &&
inlineconstexpr

◆ base() [2/2]

constexpr V base ( ) const &
inlineconstexpr

◆ begin() [1/2]

constexpr iterator<false> begin ( )
inlineconstexpr

◆ begin() [2/2]

constexpr iterator<true> begin ( ) const
inlineconstexpr

◆ end() [1/4]

constexpr sentinel<false> end ( )
inlineconstexpr

◆ end() [2/4]

constexpr iterator<false> end ( )
inlineconstexpr

◆ end() [3/4]

constexpr sentinel<true> end ( ) const
inlineconstexpr

◆ end() [4/4]

constexpr iterator<true> end ( ) const
inlineconstexpr

◆ size() [1/2]

constexpr auto size ( )
inlineconstexpr

◆ size() [2/2]

constexpr auto size ( ) const
inlineconstexpr

Friends And Related Function Documentation

◆ iterator

friend class iterator
friend

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