# cxxFunctionVirtual

Identifies a function as virtual.

## Description

Identifies a functions that is virtual. This element has two mandatory attributes; name and value that default to `"virtual"`.

The virtual specifier shall only be used in declarations of nonstatic class member functions that appear within a member-specification of a class declaration; see ISO/IEC 14882:2003(E) 10.3. Virtual functions [class.virtual].

## Contained by

cxxFunctionDefinition

## Contains

## Content Model

No content.

## Inheritance

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

Parent topic: cxxFunction module