.TH "std::ranges::single_view< _Tp >" 3cxx "libstdc++" \" -*- nroff -*-
.ad l
.nh
.SH NAME
std::ranges::single_view< _Tp > \- A view that contains exactly one element\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <ranges>\fP
.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<typename\&.\&.\&. _Args> 
.br
requires constructible_from<_Tp, _Args\&.\&.\&.>constexpr \fBsingle_view\fP (in_place_t, \fB_Args\fP &&\&.\&.\&. \fB__args\fP) noexcept(is_nothrow_constructible_v< _Tp, _Args\&.\&.\&. >)"
.br
.ti -1c
.RI "constexpr \fBdecltype\fP(\fBauto\fP) \fBback\fP ()"
.br
.ti -1c
.RI "constexpr \fBdecltype\fP(\fBauto\fP) \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 \fBdecltype\fP(\fBauto\fP) \fBfront\fP ()"
.br
.ti -1c
.RI "constexpr \fBdecltype\fP(\fBauto\fP) \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 \fBdecltype\fP(\fBauto\fP) \fBoperator[]\fP (\fBrange_difference_t\fP< _Range > __n)"
.br
.ti -1c
.RI "constexpr \fBdecltype\fP(\fBauto\fP) \fBoperator[]\fP (\fBrange_difference_t\fP< _Range > __n) const"
.br
.ti -1c
.RI "constexpr \fBauto\fP \fBsize\fP () const noexcept(noexcept(_S_size(_M_derived())))"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBstatic\fP constexpr size_t \fBsize\fP () noexcept"
.br
.in -1c
.SH "Detailed Description"
.PP 

.SS "template<copy_constructible _Tp>
.br
requires is_object_v<_Tp>
.br
class std::ranges::single_view< _Tp >"A view that contains exactly one element\&. 

.SH "Author"
.PP 
Generated automatically by Doxygen for libstdc++ from the source code\&.
