find_fwd.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*=============================================================================
  2. Copyright (c) 2011 Eric Niebler
  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(BOOST_FUSION_FIND_FWD_HPP_INCLUDED)
  7. #define BOOST_FUSION_FIND_FWD_HPP_INCLUDED
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/utility/enable_if.hpp>
  10. #include <boost/type_traits/is_const.hpp>
  11. namespace boost { namespace fusion
  12. {
  13. namespace result_of
  14. {
  15. template <typename Sequence, typename T>
  16. struct find;
  17. }
  18. template <typename T, typename Sequence>
  19. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  20. inline typename
  21. lazy_disable_if<
  22. is_const<Sequence>
  23. , result_of::find<Sequence, T>
  24. >::type const
  25. find(Sequence& seq);
  26. template <typename T, typename Sequence>
  27. BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
  28. inline typename result_of::find<Sequence const, T>::type const
  29. find(Sequence const& seq);
  30. }}
  31. #endif