diff --git a/doc/reference/arithmetic_add.htm b/doc/reference/arithmetic_add.htm index 25b98e0..89aeeac 100644 --- a/doc/reference/arithmetic_add.htm +++ b/doc/reference/arithmetic_add.htm @@ -29,6 +29,9 @@
Expands to the sum of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_ADD(4,3)
expands to 7
(a
single token).
Expands to the quotient of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_DIV(4,3)
expands to 1
(a
single token).
Expands to the remainder of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MOD(4,3)
expands to 1
(a
single token).
Expands to the product of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MUL(4,3)
expands to 12
(a
single token).
Expands to the difference of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_SUB(4,3)
expands to 1
(a
single token).
Expands to nothing if COND != 0
and to MSG
if
COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_ASSERT_MSG(1,A BUG!)
expands to A BUG!
.
Expands to a comma if COND != 0
and nothing if
COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_COMMA_IF(0)
expands to nothing.
Expands to 1
if X == Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_EQUAL(4,4)
expands to 1
.
Expands to 1
if X > Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_GREATER(4,3)
expands to 1
.
Expands to 1
if X >= Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_GREATER_EQUAL(1,3)
expands to 0
.
Expands to 1
if X < Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_LESS(2,6)
expands to 1
.
Expands to 1
if X <= Y
and 0
otherwise.
X
must expand to an integer literal.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_LESS_EQUAL(7,5)
expands to 0
.
Expands to 1
if X != Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_NOT_EQUAL(4,4)
expands to 0
.
Expands to EXPR
if COND != 0
and to nothing if COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_EXPR_IF(1,^)
expands to ^
.
Expands to THEN
if COND != 0
and ELSE
if
COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_IF(0,1,2)
expands to 2
.
Expands to the logical AND of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_AND(0,5)
expands to 0
(a single token).
Expands to 0
if X == 0
and 1
if X != 0
.
X
must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_BOOL(3)
expands to 1
.
Expands to the logical NEITHER OR of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_NOR(0,5)
expands to 0
(a single token).
Expands to the logical NOT of the operand.
+X
must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_NOT(0)
expands to 1
(a single token).
Expands to the logical OR of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_OR(0,2)
expands to 1
(a single token).
Expands to the logical EXCLUSIVE OR of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_XOR(1,2)
expands to 0
(a single token).
Expands to the maximum of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MAX(5,7)
expands to 7
(a
single token).
Expands to the minimum of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MIN(5,7)
expands to 5
(a
single token).
Expands to the sum of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_ADD(4,3)
expands to 7
(a
single token).
Expands to the quotient of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_DIV(4,3)
expands to 1
(a
single token).
Expands to the remainder of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MOD(4,3)
expands to 1
(a
single token).
Expands to the product of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MUL(4,3)
expands to 12
(a
single token).
Expands to the difference of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_SUB(4,3)
expands to 1
(a
single token).
Expands to nothing if COND != 0
and to MSG
if
COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_ASSERT_MSG(1,A BUG!)
expands to A BUG!
.
Expands to a comma if COND != 0
and nothing if
COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_COMMA_IF(0)
expands to nothing.
Expands to 1
if X == Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_EQUAL(4,4)
expands to 1
.
Expands to 1
if X > Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_GREATER(4,3)
expands to 1
.
Expands to 1
if X >= Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_GREATER_EQUAL(1,3)
expands to 0
.
Expands to 1
if X < Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_LESS(2,6)
expands to 1
.
Expands to 1
if X <= Y
and 0
otherwise.
X
must expand to an integer literal.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_LESS_EQUAL(7,5)
expands to 0
.
Expands to 1
if X != Y
and 0
otherwise.
Both X
and Y
must expand to integer literals.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_NOT_EQUAL(4,4)
expands to 0
.
Expands to EXPR
if COND != 0
and to nothing if COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_EXPR_IF(1,^)
expands to ^
.
Expands to THEN
if COND != 0
and ELSE
if
COND == 0
.
COND
must expand to an integer literal.
COND
must expand to an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_IF(0,1,2)
expands to 2
.
Expands to the logical AND of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_AND(0,5)
expands to 0
(a single token).
Expands to 0
if X == 0
and 1
if X != 0
.
X
must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_BOOL(3)
expands to 1
.
Expands to the logical NEITHER OR of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_NOR(0,5)
expands to 0
(a single token).
Expands to the logical NOT of the operand.
+X
must be an integer literal in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_NOT(0)
expands to 1
(a single token).
Expands to the logical OR of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_OR(0,2)
expands to 1
(a single token).
Expands to the logical EXCLUSIVE OR of the operands.
+Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_XOR(1,2)
expands to 0
(a single token).
Expands to the maximum of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MAX(5,7)
expands to 7
(a
single token).
Expands to the minimum of X
and Y
.
Both X
and Y
must expand to integer literals
+in the range [0, BOOST_PP_LIMIT_MAG].
For example, BOOST_PP_MIN(5,7)
expands to 5
(a
single token).