__is_const

From Appmethod Topics
Jump to: navigation, search

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


Category

Type Trait Functions

Syntax

bool __is_const(typename T)

Returns true if and only if T is a const-qualified type.

Note: References are never cv-qualified.

For pointers, refers to the pointer type itself, and NOT the pointed-to type.

Returns true if T is both const and volatile qualified.

See Also