first_of.hpp 779 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef BOOST_METAPARSE_V1_CPP98_FIRST_OF_HPP
  2. #define BOOST_METAPARSE_V1_CPP98_FIRST_OF_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/metaparse/v1/cpp98/nth_of_c.hpp>
  8. namespace boost
  9. {
  10. namespace metaparse
  11. {
  12. namespace v1
  13. {
  14. template <
  15. BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(
  16. BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE,
  17. class P,
  18. boost::mpl::na
  19. )
  20. >
  21. struct first_of :
  22. nth_of_c<
  23. 0,
  24. BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_SEQUENCE_SIZE, P)
  25. >
  26. {};
  27. }
  28. }
  29. }
  30. #endif