match_identifier_common.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // (C) Copyright Edward Diener 2011-2015
  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_VMD_DETAIL_MATCH_IDENTIFIER_COMMON_HPP)
  6. #define BOOST_VMD_DETAIL_MATCH_IDENTIFIER_COMMON_HPP
  7. #include <boost/preprocessor/cat.hpp>
  8. #include <boost/vmd/is_empty.hpp>
  9. #include <boost/vmd/detail/idprefix.hpp>
  10. #define BOOST_VMD_DETAIL_MATCH_IDENTIFIER_OP_CREATE_ID_RESULT(id,keyid) \
  11. BOOST_PP_CAT \
  12. ( \
  13. BOOST_VMD_DETAIL_IDENTIFIER_DETECTION_PREFIX, \
  14. BOOST_PP_CAT \
  15. ( \
  16. keyid, \
  17. BOOST_PP_CAT \
  18. ( \
  19. _, \
  20. id \
  21. ) \
  22. ) \
  23. ) \
  24. /**/
  25. #define BOOST_VMD_DETAIL_MATCH_IDENTIFIER_OP_CMP_IDS(id,keyid) \
  26. BOOST_VMD_IS_EMPTY \
  27. ( \
  28. BOOST_VMD_DETAIL_MATCH_IDENTIFIER_OP_CREATE_ID_RESULT(id,keyid) \
  29. ) \
  30. /**/
  31. #endif /* BOOST_VMD_DETAIL_MATCH_IDENTIFIER_COMMON_HPP */