version 0.4.1
Ikarus::traits::Rebind< Container, NewType > Struct Template Reference

Type trait to rebind the underlying type of containers. More...

Detailed Description

template<class Container, class NewType>
struct Ikarus::traits::Rebind< Container, NewType >

Specialization for types like std::vector<...> and nested std::vector<std::vector>.

Rebind<std::vector<int>, double>::other; // --> std::vector<double>
Rebind<std::vector<std::vector<int>>, double>::other; // --> std::vector<std::vector<double>>
Type trait to rebind the underlying type of containers.
Definition: traits.hh:260

Specialization for types like std::array<...,N>.

Rebind<std::array<int, 5>, double>::other; // --> std::array<double, 5>
Template Parameters
ContainerOriginal container type.
NewTypeNew type to rebind to.

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