Quick Links:

bal | bbl | bdl | bsl

Public Types

bslstl::CallableVariable< CALLABLE > Struct Template Reference

#include <bslstl_hashtable.h>

List of all members.

Public Types

typedef bsl::conditional
< bsl::is_function< CALLABLE >
::value, typename
bsl::add_lvalue_reference
< CALLABLE >::type, CALLABLE >
::type 
type

Detailed Description

template<class CALLABLE>
struct bslstl::CallableVariable< CALLABLE >

This metafunction returns a type that is an alias for CALLABLE unless that is a function type, in which case it is an alias for CALLABLE &. This should be used to declare variables of an arbitrary callable type, typically a template type parameter, that may turn out to be a function type. Note that this metafunction is necessary as the C++ language does not allow variables of function type, nor may functions return a function type.

See Component bslstl_hashtable


Member Typedef Documentation

template<class CALLABLE >
typedef bsl::conditional< bsl::is_function<CALLABLE>::value, typename bsl::add_lvalue_reference<CALLABLE>::type, CALLABLE>::type bslstl::CallableVariable< CALLABLE >::type

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