tag_keyword_arg.hpp 875 B

123456789101112131415161718192021222324252627282930
  1. // Copyright David Abrahams, Daniel Wallin 2003.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_PARAMETER_AUX_PACK_TAG_KEYWORD_ARG_HPP
  6. #define BOOST_PARAMETER_AUX_PACK_TAG_KEYWORD_ARG_HPP
  7. #include <boost/parameter/aux_/tag.hpp>
  8. #include <boost/parameter/config.hpp>
  9. namespace boost { namespace parameter { namespace aux {
  10. struct tag_keyword_arg
  11. {
  12. template <typename K, typename T>
  13. struct apply
  14. {
  15. typedef typename ::boost::parameter::aux::tag<K,T>::type type;
  16. };
  17. #if defined(BOOST_PARAMETER_CAN_USE_MP11)
  18. template <typename K, typename T>
  19. using fn = typename ::boost::parameter::aux::tag<K,T>::type;
  20. #endif
  21. };
  22. }}} // namespace boost::parameter::aux
  23. #endif // include guard