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

Name

Description

bsl::false_type

Metafunction representing the boolean constant false.

Specializations

Name

Description

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.

Created with MrDocs