mp11.hpp 662 B

12345678910111213141516171819202122232425
  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. namespace boost { namespace gil { namespace detail {
  13. template<typename L>
  14. using mp_back = ::boost::mp11::mp_at_c<L, ::boost::mp11::mp_size<L>::value - 1>;
  15. template<typename L>
  16. using mp_pop_back = ::boost::mp11::mp_take_c<L, ::boost::mp11::mp_size<L>::value - 1>;
  17. }}} // namespace boost::gil::detail
  18. #endif