__is_union

From Appmethod Topics
Jump to: navigation, search

Go Up to Type Trait Functions (C++0x) Index


Category

Type Trait Functions

Syntax

bool __is_union( typename T )

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

Note: unions are class types declared with the class-key union.

Returns false for reference/pointer to union type.

See Also