STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Types | Static Public Attributes
stapl::preserve_composition< ViewComp > Struct Template Reference

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
 

Detailed Description

template<typename ViewComp>
struct stapl::preserve_composition< ViewComp >

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.


The documentation for this struct was generated from the following file: