has_key.hpp 876 B

12345678910111213141516171819202122232425262728
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #if !defined(FUSION_HAS_KEY_10022005_1617)
  7. #define FUSION_HAS_KEY_10022005_1617
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/mpl/has_key.hpp>
  10. #include <boost/fusion/sequence/intrinsic/has_key.hpp>
  11. namespace boost { namespace mpl
  12. {
  13. template <typename Tag>
  14. struct has_key_impl;
  15. template <>
  16. struct has_key_impl<fusion::fusion_sequence_tag>
  17. {
  18. template <typename Sequence, typename Key>
  19. struct apply : fusion::result_of::has_key<Sequence, Key> {};
  20. };
  21. }}
  22. #endif