# cxxTypedefDefinition

The <cxxTypedefDefinition> element is defined within <cxxTypedefDetail>. <cxxTypedefDefinition> represents the C++ typedef declaration.

## Description

A typedef declaration specifies a new named reference type. A typedef declaration can include the following members: public, protected or private, this is represented by the <cxxTypedefAccessSpecifier> element.

<cxxTypedefDefinition> requires the element <cxxTypedefAPIItemLocation> as its child.

## Example

    <cxxTypedefDefinition>
    			<cxxTypedefAccessSpecifier value="public"/>
    			<cxxTypedefDerivations>
    				<cxxTypedefDerivation>
    					<cxxTypedefDerivationAccessSpecifier value="public"/>
    					<cxxTypedefBaseTypedef href="typedef_c_base.xml#typedef_c_base">CBase</cxxTypedefBaseTypedef>
    				</cxxTypedefDerivation>
    			</cxxTypedefDerivations>
    			<cxxTypedefAPIItemLocation>
    				<cxxTypedefDeclarationFile name="filePath" value="C:/src/include/e32base.h"/>
    				<cxxTypedefDeclarationFileLine name="lineNumber" value="2812"/>
    				<cxxTypedefDefinitionFile name="filePath" value="C:/src/include/e32base.h"/>
    				<cxxTypedefDefinitionFileLineStart name="lineNumber" value="2784"/>
    				<cxxTypedefDefinitionFileLineEnd name="lineNumber" value="2854"/>
    			</cxxTypedefAPIItemLocation>
    		</cxxTypedefDefinition>

## Contained by

cxxTypedefDetail

## Contains

cxxTypedefAPIItemLocation cxxTypedefAccessSpecifier cxxTypedefDeclaredType cxxTypedefNameLookup cxxTypedefPrototype cxxTypedefReimplemented cxxTypedefScopedName

## Content Model

(cxxTypedefAccessSpecifier (optional) then cxxTypedefDeclaredType (optional) then cxxTypedefScopedName (optional) then cxxTypedefPrototype (optional) then cxxTypedefNameLookup (optional) then cxxTypedefReimplemented (optional) then cxxTypedefAPIItemLocation (optional) )

## Inheritance

topic/section reference/section apiRef/apiDef apiValue/apiValueDef cxxTypedef/cxxTypedefDefinition

Parent topic: cxxTypedef module