Template Struct StorageAsImpl< Storage, std::tuple< T, Ts… >, std::tuple< Us… > >¶
Defined in File storage_traits_impl_.hpp
Struct Documentation¶
-
template<typename
Storage
, typenameT
, typename ...Ts
, typename ...Us
>
structripple::detail
::
StorageAsImpl
<Storage, std::tuple<T, Ts...>, std::tuple<Us...>>¶ Specialization to compare the type T against the Storage and replace it if necessary.
- Template Parameters
Storage
: The desired storage layout.T
: The type to try and replace with Storage.Ts
: A type list of untried types.Us
: A type list of tried types.
Public Types
-
using
Type
= std::conditional_t<IsStorageLayout<T>::value, std::tuple<Us..., Storage, Ts...>, typename StorageAsImpl<Storage, std::tuple<Ts...>, std::tuple<Us..., T>>::Type>¶ Defines the list of types for the type to replace with Storage.
If T is a StorageLayout type, replaces T with Storage, otherwise otherwise appends T to the list of checked types and continues.