mp11.hpp 744 B

1234567891011121314151617181920212223242526
  1. //
  2. // Copyright 2017 Peter Dimov.
  3. // Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
  4. //
  5. // Distributed under the Boost Software License, Version 1.0
  6. // See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt
  8. //
  9. #ifndef BOOST_GIL_DETAIL_MP11_HPP
  10. #define BOOST_GIL_DETAIL_MP11_HPP
  11. #include <boost/mp11.hpp>
  12. #include <boost/mp11/mpl.hpp> // required by dynamic_image and boost::variant (?)
  13. namespace boost { namespace gil { namespace detail {
  14. template<typename L>
  15. using mp_back = ::boost::mp11::mp_at_c<L, ::boost::mp11::mp_size<L>::value - 1>;
  16. template<typename L>
  17. using mp_pop_back = ::boost::mp11::mp_take_c<L, ::boost::mp11::mp_size<L>::value - 1>;
  18. }}} // namespace boost::gil::detail
  19. #endif