Meta-function providing a public member value which is true if given view composition ViewComp should be preserved during view casting.
More...
Public Types | |
| using | type = should_preserve< typename ViewComp::view_container_type > |
Static Public Attributes | |
| static constexpr bool | value = type::value |
Meta-function providing a public member value which is true if given view composition ViewComp should be preserved during view casting.
Currently, any composition that contains a Segmented or a SLICED_view is preserved. The reason for perserving compositions with the SLICED_view is technical: the implementation of new_cast_container_view that flattens the views requires each view to be of type View<Cont, Params...>, where SLICED_view<Slices, Cont, Params...> doesn't fit.
1.8.13