__is_const

From RAD Studio
Jump to: navigation, search

Go Up to Type Trait Functions (C++11) 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