Defines | |
#define | BOOST_PP_LIST_CONS(H, T) |
List constructor. More... | |
#define | BOOST_PP_LIST_NIL |
List nil constructor. More... | |
#define | BOOST_PP_LIST_IS_CONS(L) |
Expands to 1 if the list is not nil and 0 otherwise. More... | |
#define | BOOST_PP_LIST_IS_NIL(L) |
Expands to 1 if the list is nil and 0 otherwise. More... | |
#define | BOOST_PP_LIST_FIRST(L) |
Expands to the first element of the list. The list must not be nil. More... | |
#define | BOOST_PP_LIST_REST(L) |
Expands to a list of all but the first element of the list. The list must not be nil. More... |
This header defines the fundamental list operations.
NOTE: The internal representation of lists is hidden. Although there aren't compelling reasons to change the representation, you should avoid writing code that depends on the internal representation details.
|
List constructor. Lists are build using list constructors BOOST_PP_LIST_NIL and BOOST_PP_LIST_CONS(). For example,
Short lists can also be build from tuples:
Both of the above lists contain 5 elements: 1, 2, 3, 4 and 5. |
|
Expands to the first element of the list. The list must not be nil. For example,
expands to 1. See BOOST_PP_LIST_REST(). |
|
Expands to 1 if the list is not nil and 0 otherwise. See BOOST_PP_LIST_IS_NIL(). |
|
Expands to 1 if the list is nil and 0 otherwise. See BOOST_PP_LIST_IS_CONS(). |
|
List nil constructor. See BOOST_PP_LIST_CONS(). |
|
Expands to a list of all but the first element of the list. The list must not be nil. For example,
expands to a list containing 2, 3, 4 and 5. See BOOST_PP_LIST_FIRST(). |
© Copyright Housemarque Oy 2001
Permission to copy, use, modify, sell and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.
Generated: