• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
12 #include <boost/mp11.hpp>
13 #include <boost/mp11/mpl.hpp> // required by dynamic_image and boost::variant (?)
14 
15 namespace boost { namespace gil { namespace detail {
16 
17 template<typename L>
18 using mp_back = ::boost::mp11::mp_at_c<L, ::boost::mp11::mp_size<L>::value - 1>;
19 
20 template<typename L>
21 using mp_pop_back = ::boost::mp11::mp_take_c<L, ::boost::mp11::mp_size<L>::value - 1>;
22 
23 
24 }}}  // namespace boost::gil::detail
25 
26 #endif
27