swap.hpp 561 B

1234567891011121314151617181920212223242526272829
  1. #ifndef BOOST_METAPARSE_V1_SWAP_HPP
  2. #define BOOST_METAPARSE_V1_SWAP_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
  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. namespace boost
  8. {
  9. namespace metaparse
  10. {
  11. namespace v1
  12. {
  13. template <class F>
  14. struct swap
  15. {
  16. typedef swap type;
  17. template <class A, class B>
  18. struct apply : F::template apply<B, A> {};
  19. };
  20. }
  21. }
  22. }
  23. #endif