]> git.lyx.org Git - lyx.git/blob - boost/boost/preprocessor/identity.hpp
update
[lyx.git] / boost / boost / preprocessor / identity.hpp
1 #ifndef BOOST_PREPROCESSOR_IDENTITY_HPP
2 #define BOOST_PREPROCESSOR_IDENTITY_HPP
3
4 /* Copyright (C) 2001
5  * Housemarque Oy
6  * http://www.housemarque.com
7  *
8  * Permission to copy, use, modify, sell and distribute this software is
9  * granted provided this copyright notice appears in all copies. This
10  * software is provided "as is" without express or implied warranty, and
11  * with no claim as to its suitability for any purpose.
12  *
13  * See http://www.boost.org for most recent version.
14  */
15
16 #include <boost/preprocessor/empty.hpp>
17
18 /** <p>Expands to <code>X</code> once invoked.</p>
19
20 <p>Designed to be used with BOOST_PP_IF(), when one of the clauses need to be
21 invoked.</p>
22
23 <p>For example,</p>
24
25 <pre>
26 BOOST_PP_IF(1,BOOST_PP_IDENTITY(X),BOOST_PP_EMPTY)<b>()</b>
27 </pre>
28
29 <p>expands to:</p>
30
31 <pre>
32 X
33 </pre>
34
35 <h3>Test</h3>
36 <ul>
37   <li><a href="../../test/preprocessor_test.cpp">preprocessor_test.cpp</a></li>
38 </ul>
39 */
40 #define BOOST_PP_IDENTITY(X) X BOOST_PP_EMPTY
41 #endif