Minor optimizations

[SVN r12466]
This commit is contained in:
Vesa Karvonen
2002-01-23 19:10:47 +00:00
parent b6dbf78f24
commit 7413d48c47

View File

@ -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