Namespaces
Variants

std::ranges::concat_view<Views...>:: iterator <Const>:: operator*

From cppreference.net
Ranges library
Range adaptors
constexpr decltype ( auto ) operator * ( ) const ;
(desde C++26)

Devuelve una referencia al elemento actual en el concat_view .

Equivalente a using reference = concat-reference-t  < maybe-const  < Const, Views > ... > ;
return std:: visit ( [ ] ( auto && it ) - > reference { return * it ; } , it_  ) ;
.

Si it_  . valueless_by_exception ( ) es true , el comportamiento es indefinido.

Contenidos

Valor de retorno

Como se describió anteriormente.

Notas

operator - > no está proporcionado.

Ejemplo

Véase también

(C++26)
accede a un elemento por índice
(función miembro pública)