OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: How to markup a template function in c++


Hello!

The subjects says it all.

How do I markup a template function prototype like

template<typename ArgumentType> void g( ArgumentType argument )

A solution I tried was 

<funcsynopsis>
    <funcprototype>
      <funcdef>template&lt;typename <replaceable>ArgumentType</replaceable>&gt;
      <type>void</type> <function>g</function></funcdef>
      <paramdef>
	<parameter><replaceable>ArgumentType</replaceable> <replaceable>argument</replaceable></parameter>
      </paramdef>
    </funcprototype>
</funcsynopsis>

but does that really describe a templated function as docbook was
intended?

And the generated html output by the norman walsh xsl gets ugly if the
line of <funcdef> doesn't fit the browser window .... but that might be 
acceptable for a semantic searchable documentation.

Yours sincerely,

Eric Böse-Wolf


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]