# cxxFunctionStorageClassSpecifierMutable

Describes functions that have a mutable storage-class-specifier.

## Description

This element is present when the function is mutable. it has two mandatory attributes; name and value (see example below).

See ISO/IEC 14882:2003(E) 7.1.1 Storage class specifiers [dcl.stc]

The mutable specifier can be applied only to names of class data members and cannot be applied to names declared `const` or `static`, and cannot be applied to reference members.

## Example

Given this code:

    class X {
    mutable const int* p;
    };

Then function `X::p` would have the element:

    <cxxFunctionStorageClassSpecifierMutable/>

If the mandatory attributes are present they must be set thus:

    <cxxFunctionStorageClassSpecifierMutable name="mutable" value="mutable"/>

## Contained by

cxxFunctionDefinition

## Contains

## Content Model

No content.

## Inheritance

topic/state reference/state apiRef/apiQualifier apiOperation/apiQualifier cxxFunction/cxxFunctionStorageClassSpecifierMutable

Parent topic: cxxFunction module