Skip to content

LiteFX::Enumerable::Enumerable

Initializes an enumerable from another enumerable with covariant elements, e.g. Enumerable<const Derived&> to Enumerable<const Base&>.

Synopsis

Declared in <litefx/containers.hpp>

template<typename TOther>
requires (!std::is_same_v<TOther, T> && is_covariant<TOther, T>)
Enumerable(Enumerable<TOther> other);

Template Parameters

NameDescription
TOtherThe value type of the other enumerable.

Parameters

NameDescription
otherThe other enumerable.