Is_Reference< your_type_to_check >::result

Should be used as a type

If the given template-parameter is instantiated as a reference, Its member result will be a non-zero constant value. The reference being a lvalue ref causes the result equaling to 1; The reference being a rvalue ref causes the result equaling to 2. The value of Is_Reference::result is generated during compiling.

Last edited Jul 28, 2011 at 1:02 PM by UnitUniverse, version 7

Comments

No comments yet.