RAD Studio |  |

__is_scalar
See Also
Collapse All

Category

Type Trait Functions

Syntax

bool __is_scalar( typename T )

Returns true if and only if T is a scalar type.

Scalar type is defined in Section 3.9 p10 of the Working Draft, essentially:

__is_arithmetic( T ) || __is_enumeration(T) ||

__is_pointer(T) || __is_member_pointer(T)

Scalar types have a built in meaning for operator < as well as operator ==. Therefore, __closure is not a scalar type.

See Also

C++0x Features (C++Builder 2009)

Type Trait Functions Overview

Working Draft — Standard for Programming Language C++ - http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2588.pdf

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!