equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 All rights reserved. |
|
5 --> |
|
6 <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
7 <reference xml:lang="en-us" outputclass="element" id="cxxFunctionConst"> |
|
8 <title>cxxFunctionConst</title> |
|
9 <shortdesc>Used to describe a function with a <tt>const</tt> <i>cv-qualifier</i>.</shortdesc> |
|
10 <refbody> |
|
11 <section id="section_2A54A489B6CA4FAE897FD11B25175A01"> |
|
12 <title>Description</title><p>This element is present when the function has a <tt>const</tt> <i>cv-qualifier</i> |
|
13 . This has two mandatory attributes; name and value (see example below).</p><p>See ISO/IEC 14882:2003(E) 7.1.5.1 The cv-qualifiers [dcl.type.cv]</p> |
|
14 </section> |
|
15 <example id="example_115617C5F81B42EABE4CAD6A61E05DC5"> |
|
16 <title>Example</title><p>Given this code:</p> |
|
17 <codeblock>struct X { |
|
18 void g() const; |
|
19 };</codeblock><p>Then function <tt>g</tt> would have the <tt>cxxFunctionConst</tt> |
|
20 element:</p> |
|
21 <codeblock><cxxFunctionConst /></codeblock><p>If the mandatory attributes are present they must be set thus:</p> |
|
22 <codeblock><cxxFunctionConst name="const" value="const" /></codeblock> |
|
23 </example> |
|
24 <section conref="../packagedef.dita#cxxFunctionConst-reference/cxxFunctionConst-containedBy-section"/> |
|
25 <section conref="../packagedef.dita#cxxFunctionConst-reference/cxxFunctionConst-contains-section"/> |
|
26 <section conref="../packagedef.dita#cxxFunctionConst-reference/cxxFunctionConst-contentModel-section"/> |
|
27 <section conref="../packagedef.dita#cxxFunctionConst-reference/cxxFunctionConst-attList-section"/> |
|
28 <section conref="../packagedef.dita#cxxFunctionConst-reference/cxxFunctionConst-classValue-section"/> |
|
29 </refbody> |
|
30 </reference> |