boostorg / boostorg/gil

Provide base() member for adapted views or locators (Trac 2229)

Abierto
#150 1 comentario 0 reacciones 3 asignados Reclamado por @chhenning Ver en GitHub
cat/feature status/need-feedback
Lenguaje dominante
C++
Estrellas
199
Forks
171
Merge medio
1 d 14 h
PR fusionados (30 d)
10

Descripción

Moved from https://svn.boost.org/trac10/ticket/2229 description:

> I would like the result of `typename View::template add_deref::type` to include a member function `View& base()`, much like the iterator adapters currently do (and `std::reverse_iterator`).
> Imagine I have an rgb-to-hsv converted view, and then want to convert it back to rgb. All I should have to do is call `base()`.
>
> The actual use case: I have a deref function that exposes a reference to the element in a gray pixel.
> I also have a function that takes a view to regular types and creates an adapted view to gray pixels with that element type.
>
> I want to be ample to write them so that: `same_types(make_pixel(remove_pixel(T)), T)`

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.