has_function_gen.hpp 738 B

12345678910111213141516171819202122232425262728293031
  1. // (C) Copyright Edward Diener 2012
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_TTI_FUNCTION_GEN_HPP)
  6. #define BOOST_TTI_FUNCTION_GEN_HPP
  7. #include <boost/preprocessor/cat.hpp>
  8. /*
  9. The succeeding comments in this file are in doxygen format.
  10. */
  11. /** \file
  12. */
  13. /// Generates the macro metafunction name for BOOST_TTI_HAS_FUNCTION.
  14. /**
  15. name = the name of the static member function.
  16. returns = the generated macro metafunction name.
  17. */
  18. #define BOOST_TTI_HAS_FUNCTION_GEN(name) \
  19. BOOST_PP_CAT(has_function_,name) \
  20. /**/
  21. #endif // BOOST_TTI_FUNCTION_GEN_HPP