mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-15 13:36:33 +02:00
Minor optimizations
[SVN r12466]
This commit is contained in:
@ -60,13 +60,13 @@ See BOOST_PP_LIST_CONS().
|
||||
/*!
|
||||
See BOOST_PP_LIST_IS_NIL().
|
||||
*/
|
||||
#define BOOST_PP_LIST_IS_CONS(L) BOOST_PP_TUPLE_ELEM(3,2,L)
|
||||
#define BOOST_PP_LIST_IS_CONS(L) BOOST_PP_TUPLE3_ELEM2 L
|
||||
|
||||
//! Expands to 1 if the list is nil and 0 otherwise.
|
||||
/*!
|
||||
See BOOST_PP_LIST_IS_CONS().
|
||||
*/
|
||||
#define BOOST_PP_LIST_IS_NIL(L) BOOST_PP_NOT(BOOST_PP_TUPLE_ELEM(3,2,L))
|
||||
#define BOOST_PP_LIST_IS_NIL(L) BOOST_PP_NOT(BOOST_PP_TUPLE3_ELEM2 L)
|
||||
|
||||
//! Expands to the first element of the list. The list must not be nil.
|
||||
/*!
|
||||
@ -80,7 +80,7 @@ expands to 1.
|
||||
|
||||
See BOOST_PP_LIST_REST().
|
||||
*/
|
||||
#define BOOST_PP_LIST_FIRST(L) BOOST_PP_TUPLE_ELEM(3,0,L)
|
||||
#define BOOST_PP_LIST_FIRST(L) BOOST_PP_TUPLE3_ELEM0 L
|
||||
|
||||
//! Expands to a list of all but the first element of the list. The list must not be nil.
|
||||
/*!
|
||||
@ -94,5 +94,5 @@ expands to a list containing 2, 3, 4 and 5.
|
||||
|
||||
See BOOST_PP_LIST_FIRST().
|
||||
*/
|
||||
#define BOOST_PP_LIST_REST(L) BOOST_PP_TUPLE_ELEM(3,1,L)
|
||||
#define BOOST_PP_LIST_REST(L) BOOST_PP_TUPLE3_ELEM1 L
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user