# cxxStructDerivationVirtual

The <cxxStructDerivationVirtual> element indicates if inheritance is declared as virtual.

## Description

The <cxxStructDerivationVirtual> element is contained within a <cxxStructDerivation> element. The name attribute must be set to virtual and the value attribute must be set to true. The base referered to by the <cxxStructDerivationVirtual> element is indicated by using either a <cxxStructBaseStruct>, <cxxStructBaseStruct> or <cxxStructBaseUnion> element as a sibling of <cxxStructDerivationVirtual>.

## Example

    <cxxStructDerivations>
    	<cxxStructDerivation>
    		<cxxStructDerivationVirtual name="virtual" value="true"/>
    		<cxxStructDerivationAccessSpecifier value="public"/>
    		<cxxStructBaseStruct href="struct_base">Base</cxxStructBaseStruct>
    	</cxxStructDerivation>
    	...
    </cxxStructDerivations>

## Contained by

cxxStructDerivation

## Contains

## Content Model

No content.

## Inheritance

topic/state reference/state apiRef/apiQualifier apiClassifier/apiQualifier cxxStruct/cxxStructDerivationVirtual

Parent topic: cxxStruct module