1 #ifndef BOOST_MP11_DETAIL_MP_FRONT_HPP_INCLUDED
2 #define BOOST_MP11_DETAIL_MP_FRONT_HPP_INCLUDED
4 // Copyright 2015-2021 Peter Dimov.
6 // Distributed under the Boost Software License, Version 1.0.
8 // See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt
20 template<class L> struct mp_front_impl
22 // An error "no type named 'type'" here means that the argument to mp_front
23 // is either not a list, or is an empty list
26 template<template<class...> class L, class T1, class... T> struct mp_front_impl<L<T1, T...>>
33 template<class L> using mp_front = typename detail::mp_front_impl<L>::type;
38 #endif // #ifndef BOOST_MP11_DETAIL_MP_FRONT_HPP_INCLUDED