Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bdlb::Variant_ReturnValueHelper< VISITOR > Struct Template Reference

#include <bdlb_variant.h>

List of all members.

Public Types

enum  { value, VALUE }

Static Public Member Functions

template<class T >
static
Variant_ReturnValueHelper_YesType 
match (typename bsl::remove_reference< typename T::ResultType >::type *)
template<class T >
static
Variant_ReturnValueHelper_NoType 
match (...)

Detailed Description

template<class VISITOR>
struct bdlb::Variant_ReturnValueHelper< VISITOR >

This struct is a component-private meta-function. 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).

See Component bdlb_variant


Member Enumeration Documentation

template<class VISITOR >
anonymous enum
Enumerator:
value 
VALUE 

Member Function Documentation

template<class VISITOR >
template<class T >
static Variant_ReturnValueHelper_YesType bdlb::Variant_ReturnValueHelper< VISITOR >::match ( typename bsl::remove_reference< typename T::ResultType >::type  )  [static]
template<class VISITOR >
template<class T >
static Variant_ReturnValueHelper_NoType bdlb::Variant_ReturnValueHelper< VISITOR >::match (   ...  )  [static]

Return YesType if T::ResultType exists, and NoType otherwise. Note that if T::ResultType exists, then the first function is a better match than the ellipsis version.


The documentation for this struct was generated from the following file: