BloombergLP::bslstl::Variant_ConvertsWithoutNarrowing

Metafunction that is true_type when t_SOURCE converts to t_DEST without narrowing, and false_type otherwise.

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_DEST,
    class t_SOURCE,
    class = void>
struct Variant_ConvertsWithoutNarrowing
    : bsl::false_type

Base Classes

NameDescription
bsl::false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
Variant_ConvertsWithoutNarrowing<t_DEST, t_SOURCE, bsl::void_t<decltype(Variant_ArrayHelper<t_DEST>{{std::declval<t_SOURCE>()}})>> Determine whether t_SOURCE converts to t_DEST without narrowing.