Usefulified C++ code example

This commit is contained in:
Armin Ronacher
2010-05-27 13:41:16 +02:00
parent b3524a8697
commit 31aed65b6f

View File

@@ -455,9 +455,9 @@ The following directives are available:
Describe a C++ object. Full signature specification is supported -- give the
signature as you would in the declaration. Example::
.. cpp:function:: const int IntArray::operator[]
.. cpp:function:: const T &Array<T>::operator[]() const
Describes the indexing operator of IntArrays.
Describes the constant indexing operator of a templated array.
.. rst:directive:: .. cpp:namespace:: namespace