.TH "std::ranges::single_view< _Tp >" 3cxx "Sun Jan 8 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::ranges::single_view< _Tp > \- A view that contains exactly one element\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::ranges::view_interface< single_view< _Tp > >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr \fBsingle_view\fP (_Tp &&__t) noexcept(is_nothrow_move_constructible_v< _Tp >)" .br .ti -1c .RI "constexpr \fBsingle_view\fP (const _Tp &__t) noexcept(is_nothrow_copy_constructible_v< _Tp >)" .br .ti -1c .RI "template .br requires constructible_from<_Tp, _Args\&.\&.\&.>constexpr \fBsingle_view\fP (in_place_t, _Args &&\&.\&.\&. __args) noexcept(is_nothrow_constructible_v< _Tp, _Args\&.\&.\&. >)" .br .ti -1c .RI "constexpr decltype(auto) \fBback\fP ()" .br .ti -1c .RI "constexpr decltype(auto) \fBback\fP () const" .br .ti -1c .RI "constexpr const _Tp * \fBbegin\fP () const noexcept" .br .ti -1c .RI "constexpr _Tp * \fBbegin\fP () noexcept" .br .ti -1c .RI "constexpr const _Tp * \fBdata\fP () const noexcept" .br .ti -1c .RI "constexpr _Tp * \fBdata\fP () noexcept" .br .ti -1c .RI "constexpr bool \fBempty\fP () const noexcept(noexcept(_S_empty(_M_derived())))" .br .ti -1c .RI "constexpr bool \fBempty\fP () noexcept(noexcept(_S_empty(_M_derived())))" .br .ti -1c .RI "constexpr const _Tp * \fBend\fP () const noexcept" .br .ti -1c .RI "constexpr _Tp * \fBend\fP () noexcept" .br .ti -1c .RI "constexpr decltype(auto) \fBfront\fP ()" .br .ti -1c .RI "constexpr decltype(auto) \fBfront\fP () const" .br .ti -1c .RI "constexpr \fBoperator bool\fP () const noexcept(noexcept(ranges::empty(_M_derived())))" .br .ti -1c .RI "constexpr \fBoperator bool\fP () noexcept(noexcept(ranges::empty(_M_derived())))" .br .ti -1c .RI "constexpr decltype(auto) \fBoperator[]\fP (range_difference_t< _Range > __n)" .br .ti -1c .RI "constexpr decltype(auto) \fBoperator[]\fP (range_difference_t< _Range > __n) const" .br .ti -1c .RI "constexpr auto \fBsize\fP () const noexcept(noexcept(_S_size(_M_derived())))" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static constexpr size_t \fBsize\fP () noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br requires is_object_v<_Tp> .br class std::ranges::single_view< _Tp >"A view that contains exactly one element\&. .PP Definition at line \fB235\fP of file \fBranges\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template constexpr \fBstd::ranges::single_view\fP< _Tp >::single_view (const _Tp & __t)\fC [inline]\fP, \fC [explicit]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB241\fP of file \fBranges\fP\&. .SS "template constexpr \fBstd::ranges::single_view\fP< _Tp >::single_view (_Tp && __t)\fC [inline]\fP, \fC [explicit]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB247\fP of file \fBranges\fP\&. .SS "template template .br requires constructible_from<_Tp, _Args\&.\&.\&.>constexpr \fBstd::ranges::single_view\fP< _Tp >::single_view (in_place_t, _Args &&\&.\&.\&. __args)\fC [inline]\fP, \fC [explicit]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB257\fP of file \fBranges\fP\&. .SH "Member Function Documentation" .PP .SS "constexpr decltype(auto) \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::back ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [inherited]\fP" .PP Definition at line \fB158\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr decltype(auto) \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::back () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [inherited]\fP" .PP Definition at line \fB166\fP of file \fBranges_util\&.h\fP\&. .SS "template constexpr const _Tp * \fBstd::ranges::single_view\fP< _Tp >::begin () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB267\fP of file \fBranges\fP\&. .SS "template constexpr _Tp * \fBstd::ranges::single_view\fP< _Tp >::begin ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB263\fP of file \fBranges\fP\&. .SS "template constexpr const _Tp * \fBstd::ranges::single_view\fP< _Tp >::data () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB287\fP of file \fBranges\fP\&. .SS "template constexpr _Tp * \fBstd::ranges::single_view\fP< _Tp >::data ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB283\fP of file \fBranges\fP\&. .SS "constexpr bool \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::empty () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB104\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr bool \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::empty ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB98\fP of file \fBranges_util\&.h\fP\&. .SS "template constexpr const _Tp * \fBstd::ranges::single_view\fP< _Tp >::end () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB275\fP of file \fBranges\fP\&. .SS "template constexpr _Tp * \fBstd::ranges::single_view\fP< _Tp >::end ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB271\fP of file \fBranges\fP\&. .SS "constexpr decltype(auto) \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::front ()\fC [inline]\fP, \fC [constexpr]\fP, \fC [inherited]\fP" .PP Definition at line \fB144\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr decltype(auto) \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::front () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [inherited]\fP" .PP Definition at line \fB151\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::operator bool () const\fC [inline]\fP, \fC [explicit]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB115\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::operator bool ()\fC [inline]\fP, \fC [explicit]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB110\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr decltype(auto) \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::operator[] (range_difference_t< _Range > __n)\fC [inline]\fP, \fC [constexpr]\fP, \fC [inherited]\fP" .PP Definition at line \fB176\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr decltype(auto) \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::operator[] (range_difference_t< _Range > __n) const\fC [inline]\fP, \fC [constexpr]\fP, \fC [inherited]\fP" .PP Definition at line \fB181\fP of file \fBranges_util\&.h\fP\&. .SS "constexpr auto \fBstd::ranges::view_interface\fP< \fBsingle_view\fP< _Tp > >::size () const\fC [inline]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" .PP Definition at line \fB137\fP of file \fBranges_util\&.h\fP\&. .SS "template static constexpr size_t \fBstd::ranges::single_view\fP< _Tp >::size ()\fC [inline]\fP, \fC [static]\fP, \fC [constexpr]\fP, \fC [noexcept]\fP" .PP Definition at line \fB279\fP of file \fBranges\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.