Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/function_types/is_callable_builtin.hpp @ 51:5d5fb9773ce9
Subrepo
author | Chris Cannam |
---|---|
date | Thu, 07 Aug 2014 19:34:49 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 |
Chris@16 | 2 // (C) Copyright Tobias Schwinger |
Chris@16 | 3 // |
Chris@16 | 4 // Use modification and distribution are subject to the boost Software License, |
Chris@16 | 5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt). |
Chris@16 | 6 |
Chris@16 | 7 //------------------------------------------------------------------------------ |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_FT_IS_CALLABLE_BUILTIN_HPP_INCLUDED |
Chris@16 | 10 #define BOOST_FT_IS_CALLABLE_BUILTIN_HPP_INCLUDED |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/mpl/aux_/lambda_support.hpp> |
Chris@16 | 13 #include <boost/type_traits/detail/template_arity_spec.hpp> |
Chris@16 | 14 |
Chris@16 | 15 #include <boost/function_types/components.hpp> |
Chris@16 | 16 |
Chris@16 | 17 namespace boost |
Chris@16 | 18 { |
Chris@16 | 19 namespace function_types |
Chris@16 | 20 { |
Chris@16 | 21 template< typename T, typename Tag = null_tag > |
Chris@16 | 22 struct is_callable_builtin |
Chris@16 | 23 : function_types::represents |
Chris@16 | 24 < function_types::components<T> |
Chris@16 | 25 , function_types::tag<Tag, detail::callable_builtin_tag> |
Chris@16 | 26 > |
Chris@16 | 27 { |
Chris@16 | 28 BOOST_MPL_AUX_LAMBDA_SUPPORT(2,is_callable_builtin,(T,Tag)) |
Chris@16 | 29 }; |
Chris@16 | 30 } |
Chris@16 | 31 BOOST_TT_AUX_TEMPLATE_ARITY_SPEC(2,function_types::is_callable_builtin) |
Chris@16 | 32 } |
Chris@16 | 33 |
Chris@16 | 34 #endif |
Chris@16 | 35 |