VCCC  2024.05
VisualCamp Common C++ library
single_view< T > Class Template Reference

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

+ Inheritance diagram for single_view< T >:

Public Member Functions

constexpr single_view ()=default
 
constexpr single_view (const T &t)
 
constexpr single_view (T &&t)
 
template<typename InPlace , typename... Args, std::enable_if_t< conjunction< std::is_same< InPlace, vccc::in_place_t >, constructible_from< T, Args... > >::value, int > = 0>
constexpr single_view (InPlace, Args &&... args)
 
constexpr T * begin () noexcept
 
constexpr const T * begin () const noexcept
 
constexpr T * end () noexcept
 
constexpr const T * end () const noexcept
 
constexpr T * data () noexcept
 
constexpr const T * data () const noexcept
 
- Public Member Functions inherited from view_interface< single_view< 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
 

Static Public Member Functions

static constexpr std::size_t size () noexcept
 

Additional Inherited Members

- Public Types inherited from view_interface< single_view< T > >
using $vccc_derived = single_view< T >
 

Constructor & Destructor Documentation

◆ single_view() [1/4]

constexpr single_view ( )
constexprdefault

◆ single_view() [2/4]

constexpr single_view ( const T &  t)
inlineexplicitconstexpr

◆ single_view() [3/4]

constexpr single_view ( T &&  t)
inlineexplicitconstexpr

◆ single_view() [4/4]

constexpr single_view ( InPlace  ,
Args &&...  args 
)
inlineexplicitconstexpr

Member Function Documentation

◆ begin() [1/2]

constexpr const T* begin ( ) const
inlineconstexprnoexcept

◆ begin() [2/2]

constexpr T* begin ( )
inlineconstexprnoexcept

◆ data() [1/2]

constexpr const T* data ( ) const
inlineconstexprnoexcept

◆ data() [2/2]

constexpr T* data ( )
inlineconstexprnoexcept

◆ end() [1/2]

constexpr const T* end ( ) const
inlineconstexprnoexcept

◆ end() [2/2]

constexpr T* end ( )
inlineconstexprnoexcept

◆ size()

static constexpr std::size_t size ( )
inlinestaticconstexprnoexcept

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