only_after.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_ONLY_AFTER_HPP)
  6. #define BOOST_VMD_DETAIL_ONLY_AFTER_HPP
  7. #include <boost/vmd/detail/mods.hpp>
  8. #include <boost/vmd/detail/modifiers.hpp>
  9. /*
  10. Determines whether or not the BOOST_VMD_RETURN_ONLY_AFTER modifiers has been passed
  11. as a variadic parameter.
  12. Returns 1 = BOOST_VMD_RETURN_ONLY_AFTER has been passed
  13. 0 = BOOST_VMD_RETURN_ONLY_AFTER has not been passed
  14. */
  15. #define BOOST_VMD_DETAIL_ONLY_AFTER(...) \
  16. BOOST_VMD_DETAIL_MODS_IS_RESULT_ONLY_AFTER \
  17. ( \
  18. BOOST_VMD_DETAIL_NEW_MODS(BOOST_VMD_ALLOW_AFTER,__VA_ARGS__) \
  19. ) \
  20. /**/
  21. #define BOOST_VMD_DETAIL_ONLY_AFTER_D(d,...) \
  22. BOOST_VMD_DETAIL_MODS_IS_RESULT_ONLY_AFTER \
  23. ( \
  24. BOOST_VMD_DETAIL_NEW_MODS_D(d,BOOST_VMD_ALLOW_AFTER,__VA_ARGS__) \
  25. ) \
  26. /**/
  27. #endif /* BOOST_VMD_DETAIL_ONLY_AFTER_HPP */