capydi
Loading...
Searching...
No Matches
capy::meta::RebindPack< Pack_, Template > Class Template Reference

Type trait that repackages a Pack's elements into a different template. More...

#include <Pack.hpp>

Detailed Description

template<typename Pack_, template< typename... > typename Template>
class capy::meta::RebindPack< Pack_, Template >

Type trait that repackages a Pack's elements into a different template.

Template Parameters
Pack_A Pack instantiation.
TemplateThe target template to rebind into.

This enables conversion between heterogeneous containers without duplicating type lists. For example, converting a Pack<int, double> into a tuple type or a custom container.

using MyTuple = rebind_pack_t<MyPack, std::tuple>; // std::tuple<int, double, std::string>
typename RebindPack< Pack_, Template >::type rebind_pack_t
Convenience alias for RebindPack.
Definition Pack.hpp:164
A compile-time heterogeneous type list.
Definition Pack.hpp:70
Examples
/capydi/core/capymeta/include/capymeta/primitives/Pack.hpp.

The documentation for this class was generated from the following file:
  • core/capymeta/include/capymeta/primitives/Pack.hpp