Metafunction to detect the BDE ResultType idiom.

Synopsis

Declared in <bslmf_resulttype.h>

template<
    class t_FUNC,
    class t_FALLBACK,
    class = void>
struct ResultType_BdeIdiom
    : ResultType_Fallback<t_FALLBACK>

Description

This metafunction is part of the implementation of bslmf::ResultType. This struct is instantiated when t_FUNC::result_type doesn't exist. This primary template is matched when t_FUNC::ResultType also does not exist. The t_FALLBACK type, if any, is produced.

Base Classes

Name

Description

ResultType_Fallback<t_FALLBACK>

Metafunction that defines type to be the specified t_FALLBACK type unless t_FALLBACK is bslmf::Nil.

Type Aliases

Name

Description

type

The fallback type, unless t_FALLBACK is bslmf::Nil.

Specializations

Name

Description

ResultType_BdeIdiom<t_FUNC, t_FALLBACK, bsl::void_t<t_FUNC::ResultType>>

Specialization of ResultType_BdeIdiom when t_FUNC::ResultType exists.

Derived Classes

Name

Description

ResultType

Metafunction to return the result type of a functor type.

Created with MrDocs