|
|
template<typename Types , typename UnaryOp > |
BOOST_FORCEINLINE
UnaryOp::result_type | apply_operation (variant< Types > &arg, UnaryOp op) |
| | Invokes a generic mutable operation (represented as a unary function object) on a variant.
|
| |
|
template<typename Types , typename UnaryOp > |
BOOST_FORCEINLINE
UnaryOp::result_type | apply_operation (const variant< Types > &arg, UnaryOp op) |
| | Invokes a generic constant operation (represented as a unary function object) on a variant.
|
| |
|
template<typename Types1 , typename Types2 , typename BinaryOp > |
BOOST_FORCEINLINE
BinaryOp::result_type | apply_operation (const variant< Types1 > &arg1, const variant< Types2 > &arg2, BinaryOp op) |
| | Invokes a generic constant operation (represented as a binary function object) on two variants.
|
| |
Implements apply_operation for variants. Optionally performs type reduction.
- Author
- Lubomir Bourdev and Hailin Jin
Adobe Systems Incorporated
- Date
- 2005-2007
Last updated on May 4, 2006