Skip to content

LiteFX::meta::is_implicitly_constructible_t

Evaluates to either true or false, if T can be constructed using the provided arguments and at the same time can also be converted from TArg.

Synopsis

Declared in <litefx/traits.hpp>

template<
    typename T,
    typename TArg,
    typename... TArgs>
struct is_implicitly_constructible_t
    : std::bool_constant<std::is_constructible_v<T, TArg, TArgs...> && std::is_convertible_v<TArg, T>>

Base Classes

NameDescription
std::bool_constant<std::is_constructible_v<T, TArg, TArgs...> && std::is_convertible_v<TArg, T>>

Template Parameters

NameDescription
TThe type to check.
TArgThe parameter to check for conversion support.
TArgsThe remaining constructor parameters.