# cxxUnionAPIItemLocation

The <cxxUnionAPIItemLocation> element is defined within <cxxUnionDefinition>. <cxxUnionAPIItemLocation> specifies the location of the API.

## Description

The <cxxUnionAPIItemLocation> element must contain the location of the API declaration using <cxxUnionDeclarationFile> and <cxxUnionDeclarationFileLine>; the location of the API definition is optional.

## Example

    <cxxUnionAPIItemLocation>
    				<cxxUnionDeclarationFile name="filePath" value="D:/src/include/headerfile.h"/>
    				<cxxUnionDeclarationFileLine name="lineNumber" value="775"/>
    				<cxxUnionDefinitionFile name="filePath" value="D:/src/include/headerfile.h"/>
    				<cxxUnionDefinitionFileLineStart name="lineNumber" value="765"/>
    				<cxxUnionDefinitionFileLineEnd name="lineNumber" value="787"/>
    			</cxxUnionAPIItemLocation>

## Contained by

cxxUnionDefinition

## Contains

cxxUnionDeclarationFile cxxUnionDeclarationFileLine cxxUnionDefinitionFile cxxUnionDefinitionFileLineEnd cxxUnionDefinitionFileLineStart

## Content Model

(cxxUnionDeclarationFile then cxxUnionDeclarationFileLine then cxxUnionDefinitionFile (optional) then cxxUnionDefinitionFileLineStart (optional) then cxxUnionDefinitionFileLineEnd (optional) )

## Inheritance

topic/ph reference/ph apiRef/apiDefItem apiClassifier/apiDefItem cxxUnion/cxxUnionAPIItemLocation

Parent topic: cxxUnion module