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++


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 

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

but does that really describe a templated function as docbook was

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]