Template Struct LayoutTraits¶
Defined in File layout_traits.hpp
Struct Documentation¶
-
template<typename
T
, boolPolyAndNonOwningData
>
structripple
::
LayoutTraits
¶ Defines layout traits for the template type T.
This implementation is for when the data is owned by the type, other cases are specialized.
- Note
This should be used as layout_traits_t<T>, since that aliases the correct specializtion.
- Template Parameters
T
: The type to get the layout traits for.PolyAndNonOwningData
: Condition for specialization.
Public Types
-
using
Allocator
= typename DefaultStorage<T>::Allocator¶ Defines the type of the allocator for type T.
Public Static Attributes
-
constexpr bool
is_polymorphic_layout
= false¶ Defines if the type T is a PolymorphicLayout type.
-
constexpr LayoutKind
layout_kind
= LayoutKind::none¶ Defines the type of the layout for T.
-
constexpr bool
is_strided_view
= false¶ True if the Layout is a strided view layout kind.