has_key.hpp 833 B

123456789101112131415161718192021222324252627
  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/mpl/has_key.hpp>
  9. #include <boost/fusion/sequence/intrinsic/has_key.hpp>
  10. namespace boost { namespace mpl
  11. {
  12. template <typename Tag>
  13. struct has_key_impl;
  14. template <>
  15. struct has_key_impl<fusion::fusion_sequence_tag>
  16. {
  17. template <typename Sequence, typename Key>
  18. struct apply : fusion::result_of::has_key<Sequence, Key> {};
  19. };
  20. }}
  21. #endif