std::ranges::empty_view - Man Page

A view that contains no elements.

Synopsis

Inherits std::ranges::view_interface< empty_view< _Tp > >.

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

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp >  >::back () [inline], [constexpr], [inherited]

Definition at line 158 of file ranges_util.h.

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp >  >::back () const [inline], [constexpr], [inherited]

Definition at line 166 of file ranges_util.h.

template<typename _Tp > static constexpr _Tp * std::ranges::empty_view< _Tp >::begin () [inline], [static], [constexpr], [noexcept]

Definition at line 78 of file ranges.

constexpr auto std::ranges::view_interface< empty_view< _Tp >  >::data () const [inline], [constexpr], [noexcept], [inherited]

Definition at line 125 of file ranges_util.h.

template<typename _Tp > static constexpr _Tp * std::ranges::empty_view< _Tp >::data () [inline], [static], [constexpr], [noexcept]

Definition at line 80 of file ranges.

constexpr bool std::ranges::view_interface< empty_view< _Tp >  >::empty () const [inline], [constexpr], [noexcept], [inherited]

Definition at line 104 of file ranges_util.h.

template<typename _Tp > static constexpr bool std::ranges::empty_view< _Tp >::empty () [inline], [static], [constexpr], [noexcept]

Definition at line 82 of file ranges.

template<typename _Tp > static constexpr _Tp * std::ranges::empty_view< _Tp >::end () [inline], [static], [constexpr], [noexcept]

Definition at line 79 of file ranges.

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp >  >::front () [inline], [constexpr], [inherited]

Definition at line 144 of file ranges_util.h.

constexpr decltype(auto) std::ranges::view_interface< empty_view< _Tp >  >::front () const [inline], [constexpr], [inherited]

Definition at line 151 of file ranges_util.h.

constexpr std::ranges::view_interface< empty_view< _Tp >  >::operator bool () const [inline], [explicit], [constexpr], [noexcept], [inherited]

Definition at line 115 of file ranges_util.h.

constexpr std::ranges::view_interface< empty_view< _Tp >  >::operator bool () [inline], [explicit], [constexpr], [noexcept], [inherited]

Definition at line 110 of file ranges_util.h.

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

Definition at line 176 of file ranges_util.h.

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

Definition at line 181 of file ranges_util.h.

constexpr auto std::ranges::view_interface< empty_view< _Tp >  >::size () const [inline], [constexpr], [noexcept], [inherited]

Definition at line 137 of file ranges_util.h.

template<typename _Tp > static constexpr size_t std::ranges::empty_view< _Tp >::size () [inline], [static], [constexpr], [noexcept]

Definition at line 81 of file ranges.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Wed Sep 7 2022 libstdc++