Component‐private helper that detects a visitor ResultType.
Synopsis
Declared in <bdlb_variant.h>
template<class VISITOR>
struct Variant_ReturnValueHelper
: bsl::integral_constant<bool, sizeof (Variant_ReturnValueHelper_Matcher::match<VISITOR>(0)) == sizeof(Variant_ReturnValueHelper_YesType)>
Description
Do not use. This meta‐function checks whether the template parameter type VISITOR has the member ResultType defined using "SFINAE" (Substitution Failure Is Not An Error). A value of true indicates VISITOR::ResultType exists, and false otherwise.
Base Classes
Name |
Description |
Metafunction representing a compile‐time constant of the specified (template parameter) |
Type Aliases
Name |
Description |
Alias for this |
|
Alias for the (template parameter) |
Member Functions
Name |
Description |
Return a copy of the template argument |
|
Return a copy of the template argument |