libstdc++
std::ranges::empty_view< _Tp > Class Template Reference

#include <ranges>

Inheritance diagram for std::ranges::empty_view< _Tp >:
[legend]

Public Member Functions

constexpr decltype(auto) back ()
 
constexpr decltype(auto) back () const
 
constexpr auto cbegin ()
 
constexpr auto cbegin () const
 
constexpr auto cend ()
 
constexpr auto cend () 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 107 of file ranges.

Member Function Documentation

◆ back() [1/2]

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

Definition at line 176 of file ranges_util.h.

◆ back() [2/2]

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

Definition at line 184 of file ranges_util.h.

◆ begin()

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

Definition at line 111 of file ranges.

◆ cbegin() [1/2]

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

Definition at line 204 of file ranges_util.h.

◆ cbegin() [2/2]

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

Definition at line 208 of file ranges_util.h.

◆ cend() [1/2]

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

Definition at line 212 of file ranges_util.h.

◆ cend() [2/2]

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

Definition at line 216 of file ranges_util.h.

◆ data() [1/2]

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

Definition at line 143 of file ranges_util.h.

◆ data() [2/2]

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

Definition at line 113 of file ranges.

◆ empty() [1/2]

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

Definition at line 116 of file ranges_util.h.

◆ empty() [2/2]

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

Definition at line 115 of file ranges.

◆ end()

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

Definition at line 112 of file ranges.

◆ front() [1/2]

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

Definition at line 162 of file ranges_util.h.

◆ front() [2/2]

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

Definition at line 169 of file ranges_util.h.

◆ operator bool() [1/2]

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

Definition at line 133 of file ranges_util.h.

◆ operator bool() [2/2]

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

Definition at line 128 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 194 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 199 of file ranges_util.h.

◆ size() [1/2]

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

Definition at line 155 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 114 of file ranges.


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