back_inserter.cpp 682 B

1234567891011121314151617181920212223242526
  1. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
  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. #include <boost/metaparse/v1/impl/back_inserter.hpp>
  6. #include <boost/mpl/assert.hpp>
  7. #include <boost/mpl/equal.hpp>
  8. #include <boost/mpl/deque.hpp>
  9. #include "test_case.hpp"
  10. BOOST_METAPARSE_TEST_CASE(back_inserter)
  11. {
  12. using boost::metaparse::v1::impl::back_inserter;
  13. using boost::mpl::equal;
  14. using boost::mpl::deque;
  15. // test_inserts_at_the_back
  16. BOOST_MPL_ASSERT((
  17. equal<deque<int, char>, back_inserter::apply<deque<int>, char>::type>
  18. ));
  19. }