DITA-OT_CXX_Plugin/cxxapiref/doc/cxxFunction/cxxFunctionConst.dita
changeset 4 468f4c8d3d5b
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
       
     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>&lt;cxxFunctionConst /&gt;</codeblock><p>If the mandatory attributes are present they must be set thus:</p>
       
    22             <codeblock>&lt;cxxFunctionConst name="const" value="const" /&gt;</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>