Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::proto::is_callable< T > Struct Template Reference

Boolean metafunction which detects whether a type is a callable function object type or not. More...

#include <traits.hpp>

Inheritance diagram for boost::proto::is_callable< T >:
Collaboration diagram for boost::proto::is_callable< T >:

Detailed Description

template<typename T>
struct boost::proto::is_callable< T >

Boolean metafunction which detects whether a type is a callable function object type or not.

is_callable<> is used by the when<> transform to determine whether a function type R(A1,A2,...AN) is a callable transform or an object transform. (The former are evaluated using call<> and the later with make<>.) If is_callable<R>value is true, the function type is a callable transform; otherwise, it is an object transform.

Unless specialized for a type T, is_callable<T>value is computed as follows:


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