From: Daniel Arndt Date: Thu, 31 Aug 2017 23:17:56 +0000 (+0200) Subject: Remove unused fun_ptr_helper X-Git-Tag: v9.0.0-rc1~1137^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af187b579739b4055bafc4b7bbb832d3777fe92;p=dealii.git Remove unused fun_ptr_helper --- diff --git a/include/deal.II/base/thread_management.h b/include/deal.II/base/thread_management.h index db54306777..d6fa9a5711 100644 --- a/include/deal.II/base/thread_management.h +++ b/include/deal.II/base/thread_management.h @@ -767,231 +767,6 @@ namespace Threads - namespace internal - { - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments, and whether the second argument is a const or non-const - * class, depending on which the member function will also me const or - * non-const. There are specializations of this class for each number of - * arguments. - */ - template ::value> - struct fun_ptr_helper; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 0 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 1 argument. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 2 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 3 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 4 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 5 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type, - typename std::tuple_element<4,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 6 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type, - typename std::tuple_element<4,ArgList>::type, - typename std::tuple_element<5,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 7 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type, - typename std::tuple_element<4,ArgList>::type, - typename std::tuple_element<5,ArgList>::type, - typename std::tuple_element<6,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 8 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type, - typename std::tuple_element<4,ArgList>::type, - typename std::tuple_element<5,ArgList>::type, - typename std::tuple_element<6,ArgList>::type, - typename std::tuple_element<7,ArgList>::type); - }; - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 9 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type, - typename std::tuple_element<4,ArgList>::type, - typename std::tuple_element<5,ArgList>::type, - typename std::tuple_element<6,ArgList>::type, - typename std::tuple_element<7,ArgList>::type, - typename std::tuple_element<8,ArgList>::type); - }; - - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. This is the specialization for 10 arguments. - */ - template - struct fun_ptr_helper - { - typedef RT (type) (typename std::tuple_element<0,ArgList>::type, - typename std::tuple_element<1,ArgList>::type, - typename std::tuple_element<2,ArgList>::type, - typename std::tuple_element<3,ArgList>::type, - typename std::tuple_element<4,ArgList>::type, - typename std::tuple_element<5,ArgList>::type, - typename std::tuple_element<6,ArgList>::type, - typename std::tuple_element<7,ArgList>::type, - typename std::tuple_element<8,ArgList>::type, - typename std::tuple_element<9,ArgList>::type); - }; - - - - /** - * @internal - * - * Construct a pointer to non-member function based on the template - * arguments. We do this by dispatching to the fun_ptr_helper classes that - * are overloaded on the number of elements. - * - * Note that the last template argument for the fun_ptr_helper class is - * automatically computed in the default argument to the general template. - */ - template - struct fun_ptr - { - typedef typename fun_ptr_helper::type type; - }; - } - - - namespace internal { #ifdef DEAL_II_WITH_THREADS