Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:40:54

0001 #ifndef BOOST_MP11_DETAIL_MP_IS_LIST_HPP_INCLUDED
0002 #define BOOST_MP11_DETAIL_MP_IS_LIST_HPP_INCLUDED
0003 
0004 // Copyright 2015-2019 Peter Dimov.
0005 //
0006 // Distributed under the Boost Software License, Version 1.0.
0007 //
0008 // See accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt
0010 
0011 #include <boost/mp11/integral.hpp>
0012 
0013 namespace boost
0014 {
0015 namespace mp11
0016 {
0017 
0018 // mp_is_list<L>
0019 namespace detail
0020 {
0021 
0022 template<class L> struct mp_is_list_impl
0023 {
0024     using type = mp_false;
0025 };
0026 
0027 template<template<class...> class L, class... T> struct mp_is_list_impl<L<T...>>
0028 {
0029     using type = mp_true;
0030 };
0031 
0032 } // namespace detail
0033 
0034 template<class L> using mp_is_list = typename detail::mp_is_list_impl<L>::type;
0035 
0036 } // namespace mp11
0037 } // namespace boost
0038 
0039 #endif // #ifndef BOOST_MP11_DETAIL_MP_IS_LIST_HPP_INCLUDED