libstdc++
std::ranges::empty_view< _Tp > Class Template Reference
Inheritance diagram for std::ranges::empty_view< _Tp >:
[legend]

Public Member Functions

constexpr decltype(auto) back ()
 
constexpr decltype(auto) back () const
 
constexpr auto data () const noexcept(noexcept(ranges::begin(_M_derived())))
 
constexpr bool empty () const noexcept(noexcept(_S_empty(_M_derived())))
 
constexpr decltype(auto) front ()
 
constexpr decltype(auto) front () const
 
constexpr operator bool () const noexcept(noexcept(ranges::empty(_M_derived())))
 
constexpr operator bool () noexcept(noexcept(ranges::empty(_M_derived())))
 
constexpr decltype(auto) operator[] (range_difference_t< _Range > __n)
 
constexpr decltype(auto) operator[] (range_difference_t< _Range > __n) const
 
constexpr auto size () const noexcept(noexcept(_S_size(_M_derived())))
 

Static Public Member Functions

static constexpr _Tp * begin () noexcept
 
static constexpr _Tp * data () noexcept
 
static constexpr bool empty () noexcept
 
static constexpr _Tp * end () noexcept
 
static constexpr size_t size () noexcept
 

Detailed Description

template<typename _Tp>
requires is_object_v<_Tp>
class std::ranges::empty_view< _Tp >

A view that contains no elements.

Definition at line 74 of file ranges.

Member Function Documentation

◆ back() [1/2]

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp > >::back ( )
inlineconstexprinherited

Definition at line 158 of file ranges_util.h.

◆ back() [2/2]

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp > >::back ( ) const
inlineconstexprinherited

Definition at line 166 of file ranges_util.h.

◆ begin()

template<typename _Tp >
static constexpr _Tp * std::ranges::empty_view< _Tp >::begin ( )
inlinestaticconstexprnoexcept

Definition at line 78 of file ranges.

◆ data() [1/2]

constexpr auto std::ranges::view_interface< empty_view< _Tp > >::data ( ) const
inlineconstexprnoexceptinherited

Definition at line 125 of file ranges_util.h.

◆ data() [2/2]

template<typename _Tp >
static constexpr _Tp * std::ranges::empty_view< _Tp >::data ( )
inlinestaticconstexprnoexcept

Definition at line 80 of file ranges.

◆ empty() [1/2]

constexpr bool std::ranges::view_interface< empty_view< _Tp > >::empty ( ) const
inlineconstexprnoexceptinherited

Definition at line 104 of file ranges_util.h.

◆ empty() [2/2]

template<typename _Tp >
static constexpr bool std::ranges::empty_view< _Tp >::empty ( )
inlinestaticconstexprnoexcept

Definition at line 82 of file ranges.

◆ end()

template<typename _Tp >
static constexpr _Tp * std::ranges::empty_view< _Tp >::end ( )
inlinestaticconstexprnoexcept

Definition at line 79 of file ranges.

◆ front() [1/2]

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp > >::front ( )
inlineconstexprinherited

Definition at line 144 of file ranges_util.h.

◆ front() [2/2]

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp > >::front ( ) const
inlineconstexprinherited

Definition at line 151 of file ranges_util.h.

◆ operator bool() [1/2]

constexpr std::ranges::view_interface< empty_view< _Tp > >::operator bool ( ) const
inlineexplicitconstexprnoexceptinherited

Definition at line 115 of file ranges_util.h.

◆ operator bool() [2/2]

constexpr std::ranges::view_interface< empty_view< _Tp > >::operator bool ( )
inlineexplicitconstexprnoexceptinherited

Definition at line 110 of file ranges_util.h.

◆ operator[]() [1/2]

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp > >::operator[] ( range_difference_t< _Range >  __n)
inlineconstexprinherited

Definition at line 176 of file ranges_util.h.

◆ operator[]() [2/2]

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp > >::operator[] ( range_difference_t< _Range >  __n) const
inlineconstexprinherited

Definition at line 181 of file ranges_util.h.

◆ size() [1/2]

constexpr auto std::ranges::view_interface< empty_view< _Tp > >::size ( ) const
inlineconstexprnoexceptinherited

Definition at line 137 of file ranges_util.h.

◆ size() [2/2]

template<typename _Tp >
static constexpr size_t std::ranges::empty_view< _Tp >::size ( )
inlinestaticconstexprnoexcept

Definition at line 81 of file ranges.


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