pmf_varargs_2.hpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. Copyright (c) 2016 Barrett Adair
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  5. HEADER GUARDS INTENTIONALLY OMITTED
  6. DO NOT INCLUDE THIS HEADER DIRECTLY
  7. */
  8. template<typename T, typename Return, typename... Args>
  9. struct set_varargs_member_function_qualifiers_t <
  10. flag_map<int BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS>::value,
  11. false, // IsTransactionSafe
  12. false, // IsNoexcept
  13. BOOST_CLBL_TRTS_CC_TAG, T, Return, Args...> {
  14. using type =
  15. Return(BOOST_CLBL_TRTS_VARARGS_CC T::*)(Args..., ...)
  16. BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS;
  17. };
  18. template<typename T, typename Return, typename... Args>
  19. struct set_varargs_member_function_qualifiers_t <
  20. flag_map<int BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS>::value,
  21. false,
  22. true,
  23. BOOST_CLBL_TRTS_CC_TAG, T, Return, Args...> {
  24. using type =
  25. Return(BOOST_CLBL_TRTS_VARARGS_CC T::*)(Args..., ...)
  26. BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS BOOST_CLBL_TRTS_NOEXCEPT_SPECIFIER;
  27. };
  28. template<typename T, typename Return, typename... Args>
  29. struct set_varargs_member_function_qualifiers_t <
  30. flag_map<int BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS>::value,
  31. true,
  32. false,
  33. BOOST_CLBL_TRTS_CC_TAG, T, Return, Args...> {
  34. using type =
  35. Return(BOOST_CLBL_TRTS_VARARGS_CC T::*)(Args..., ...)
  36. BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS
  37. BOOST_CLBL_TRTS_TRANSACTION_SAFE_SPECIFIER;
  38. };
  39. template<typename T, typename Return, typename... Args>
  40. struct set_varargs_member_function_qualifiers_t <
  41. flag_map<int BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS>::value,
  42. true,
  43. true,
  44. BOOST_CLBL_TRTS_CC_TAG, T, Return, Args...> {
  45. using type =
  46. Return(BOOST_CLBL_TRTS_VARARGS_CC T::*)(Args..., ...)
  47. BOOST_CLBL_TRTS_INCLUDE_QUALIFIERS
  48. BOOST_CLBL_TRTS_TRANSACTION_SAFE_SPECIFIER
  49. BOOST_CLBL_TRTS_NOEXCEPT_SPECIFIER;
  50. };
  51. #define BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
  52. #define BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE std::false_type
  53. #include <boost/callable_traits/detail/unguarded/pmf_varargs_3.hpp>
  54. #undef BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
  55. #undef BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE
  56. #ifdef BOOST_CLBL_TRTS_ENABLE_TRANSACTION_SAFE
  57. #define BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE std::true_type
  58. #define BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE transaction_safe
  59. #include <boost/callable_traits/detail/unguarded/pmf_varargs_3.hpp>
  60. #endif
  61. #undef BOOST_CLBL_TRTS_INCLUDE_TRANSACTION_SAFE
  62. #undef BOOST_CLBL_TRTS_IS_TRANSACTION_SAFE