Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
950 bytes
|
Line | |
---|
1 | # /* ************************************************************************** |
---|
2 | # * * |
---|
3 | # * (C) Copyright Paul Mensonides 2002. |
---|
4 | # * Distributed under the Boost Software License, Version 1.0. (See |
---|
5 | # * accompanying file LICENSE_1_0.txt or copy at |
---|
6 | # * http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | # * * |
---|
8 | # ************************************************************************** */ |
---|
9 | # |
---|
10 | # /* See http://www.boost.org for most recent version. */ |
---|
11 | # |
---|
12 | # include <boost/preprocessor/array.hpp> |
---|
13 | # include <libs/preprocessor/test/test.h> |
---|
14 | |
---|
15 | # define ARRAY (3, (0, 1, 2)) |
---|
16 | |
---|
17 | // element access |
---|
18 | |
---|
19 | BEGIN BOOST_PP_ARRAY_ELEM(1, ARRAY) == 1 END |
---|
20 | BEGIN BOOST_PP_ARRAY_ELEM(2, (5, (0, 1, 2, 3, 4))) == 2 END |
---|
21 | |
---|
22 | // size |
---|
23 | |
---|
24 | BEGIN BOOST_PP_ARRAY_SIZE(ARRAY) == 3 END |
---|
25 | BEGIN BOOST_PP_ARRAY_SIZE((5, (0, 1, 2, 3, 4))) == 5 END |
---|
Note: See
TracBrowser
for help on using the repository browser.