#include <boost/preprocessor/list/adt.hpp> #define LIST (a, BOOST_PP_NIL) BOOST_PP_LIST_IS_CONS(LIST) // expands to 1 BOOST_PP_LIST_IS_CONS(BOOST_PP_LIST_REST(LIST)) // expands to 0
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)