← Prev in month ← Prev in thread
Next in thread → Next in month →

How to markup a template function in c++

From
<>
Date
2009-12-14T22:18:57+00:00
ID
-TLD
Thread
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
← Prev in month ← Prev in thread
Next in thread → Next in month →