X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Ftype_traits.hh;h=f3e58114baf0cb7ee4896c9bbbc30a1b77a118bf;hb=96a801acd64d520710b9c899ae23d462c759db38;hp=19b234521ed1fa64c18674ad5b516dc658d554de;hpb=3fe2ed38b800bcb57afff676698462e763724245;p=senf.git diff --git a/senf/Utils/type_traits.hh b/senf/Utils/type_traits.hh index 19b2345..f3e5811 100644 --- a/senf/Utils/type_traits.hh +++ b/senf/Utils/type_traits.hh @@ -243,6 +243,15 @@ namespace senf : public boost::remove_cv< typename boost::remove_reference::type > {}; + /** \brief Get arity of function T + + \a T may be any function like type: function, pointer to function or (pointer to) + member-function. + + \code + BOOST_STATIC_ASSERT(( senf::function_arity::value == 1 )); + \endcode + */ template < class T > struct function_arity : public boost::integral_constant<