- testing 12.2.0-14
- unstable 12.2.0-14
- experimental 12.2.0-17
std::ranges::single_view< _Tp >(3cxx) | std::ranges::single_view< _Tp >(3cxx) |
NAME¶
std::ranges::single_view< _Tp > - A view that contains exactly one element.
SYNOPSIS¶
Inherits std::ranges::view_interface< single_view< _Tp > >.
Public Member Functions¶
constexpr single_view (_Tp &&__t)
noexcept(is_nothrow_move_constructible_v< _Tp >)
constexpr single_view (const _Tp &__t)
noexcept(is_nothrow_copy_constructible_v< _Tp >)
template<typename... _Args>
requires constructible_from<_Tp, _Args...>constexpr single_view
(in_place_t, _Args &&... __args)
noexcept(is_nothrow_constructible_v< _Tp, _Args... >)"
constexpr decltype(auto) back ()
constexpr decltype(auto) back () const
constexpr const _Tp * begin () const noexcept
constexpr _Tp * begin () noexcept
constexpr const _Tp * data () const noexcept
constexpr _Tp * data () noexcept
constexpr bool empty () const
noexcept(noexcept(_S_empty(_M_derived())))
constexpr bool empty () noexcept(noexcept(_S_empty(_M_derived())))
constexpr const _Tp * end () const noexcept
constexpr _Tp * end () noexcept
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 size_t size () noexcept
Detailed Description¶
template<copy_constructible _Tp>¶
requires is_object_v<_Tp>
class std::ranges::single_view< _Tp >"A view that contains exactly
one element.
Definition at line 235 of file ranges.
Constructor & Destructor Documentation¶
template<copy_constructible _Tp> constexpr std::ranges::single_view< _Tp >::single_view (const _Tp & __t) [inline], [explicit], [constexpr], [noexcept]¶
Definition at line 241 of file ranges.
template<copy_constructible _Tp> constexpr std::ranges::single_view< _Tp >::single_view (_Tp && __t) [inline], [explicit], [constexpr], [noexcept]¶
Definition at line 247 of file ranges.
template<copy_constructible _Tp> template<typename... _Args> ¶
requires constructible_from<_Tp, _Args...>constexpr std::ranges::single_view< _Tp >::single_view (in_place_t, _Args &&... __args) [inline], [explicit], [constexpr], [noexcept]"
Definition at line 257 of file ranges.
Member Function Documentation¶
constexpr decltype(auto) std::ranges::view_interface< single_view< _Tp > >::back () [inline], [constexpr], [inherited]¶
Definition at line 158 of file ranges_util.h.
constexpr decltype(auto) std::ranges::view_interface< single_view< _Tp > >::back () const [inline], [constexpr], [inherited]¶
Definition at line 166 of file ranges_util.h.
template<copy_constructible _Tp> constexpr const _Tp * std::ranges::single_view< _Tp >::begin () const [inline], [constexpr], [noexcept]¶
Definition at line 267 of file ranges.
template<copy_constructible _Tp> constexpr _Tp * std::ranges::single_view< _Tp >::begin () [inline], [constexpr], [noexcept]¶
Definition at line 263 of file ranges.
template<copy_constructible _Tp> constexpr const _Tp * std::ranges::single_view< _Tp >::data () const [inline], [constexpr], [noexcept]¶
Definition at line 287 of file ranges.
template<copy_constructible _Tp> constexpr _Tp * std::ranges::single_view< _Tp >::data () [inline], [constexpr], [noexcept]¶
Definition at line 283 of file ranges.
constexpr bool std::ranges::view_interface< single_view< _Tp > >::empty () const [inline], [constexpr], [noexcept], [inherited]¶
Definition at line 104 of file ranges_util.h.
constexpr bool std::ranges::view_interface< single_view< _Tp > >::empty () [inline], [constexpr], [noexcept], [inherited]¶
Definition at line 98 of file ranges_util.h.
template<copy_constructible _Tp> constexpr const _Tp * std::ranges::single_view< _Tp >::end () const [inline], [constexpr], [noexcept]¶
Definition at line 275 of file ranges.
template<copy_constructible _Tp> constexpr _Tp * std::ranges::single_view< _Tp >::end () [inline], [constexpr], [noexcept]¶
Definition at line 271 of file ranges.
constexpr decltype(auto) std::ranges::view_interface< single_view< _Tp > >::front () [inline], [constexpr], [inherited]¶
Definition at line 144 of file ranges_util.h.
constexpr decltype(auto) std::ranges::view_interface< single_view< _Tp > >::front () const [inline], [constexpr], [inherited]¶
Definition at line 151 of file ranges_util.h.
constexpr std::ranges::view_interface< single_view< _Tp > >::operator bool () const [inline], [explicit], [constexpr], [noexcept], [inherited]¶
Definition at line 115 of file ranges_util.h.
constexpr std::ranges::view_interface< single_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< single_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< single_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< single_view< _Tp > >::size () const [inline], [constexpr], [noexcept], [inherited]¶
Definition at line 137 of file ranges_util.h.
template<copy_constructible _Tp> static constexpr size_t std::ranges::single_view< _Tp >::size () [inline], [static], [constexpr], [noexcept]¶
Definition at line 279 of file ranges.
Author¶
Generated automatically by Doxygen for libstdc++ from the source code.
Mon Aug 22 2022 | libstdc++ |