C++, add some missing .. versionadded directives.

This commit is contained in:
Jakob Lykke Andersen 2019-01-20 12:28:57 +01:00
parent cd22352adb
commit 4e6dacd81b

View File

@ -706,6 +706,8 @@ visibility statement (``public``, ``private`` or ``protected``).
Describe a union.
.. versionadded:: 1.8
.. rst:directive:: .. cpp:concept:: template-parameter-list name
.. warning:: The support for concepts is experimental. It is based on the
@ -750,6 +752,9 @@ visibility statement (``public``, ``private`` or ``protected``).
- :cpp:expr:`++r`, with return type :cpp:expr:`It&`, when :cpp:expr:`r`
is incrementable.
.. versionadded:: 1.5
Options
^^^^^^^
@ -759,6 +764,8 @@ Some directives support options:
- ``:tparam-line-spec:``, for templated declarations.
If specified, each template parameter will be rendered on a separate line.
.. versionadded:: 1.6
Anonymous Entities
~~~~~~~~~~~~~~~~~~
@ -793,6 +800,8 @@ This will be rendered as:
Explicit ref: :cpp:var:`Data::@data::a`. Short-hand ref: :cpp:var:`Data::a`.
.. versionadded:: 1.8
Aliasing Declarations
~~~~~~~~~~~~~~~~~~~~~
@ -825,8 +834,10 @@ The following directive can be used for this purpose.
becomes
.. cpp:alias:: void overload_example::C::f(double d) const
void overload_example::C::f(double d)
.. cpp:alias:: void overload_example::C::f(double d) const
void overload_example::C::f(double d)
.. versionadded:: 2.0
Constrained Templates
@ -914,6 +925,11 @@ Inline Expressions and Types
A type: :cpp:expr:`const MySortedContainer<int>&`
(or as text :cpp:texpr:`const MySortedContainer<int>&`).
.. versionadded:: 1.7
The :rst:role:`cpp:expr` role.
.. versionadded:: 1.8
The :rst:role:`cpp:texpr` role.
Namespacing
~~~~~~~~~~~
@ -976,6 +992,8 @@ The ``cpp:namespace-pop`` directive undoes the most recent
the current scope will be ``A::B::C::D``.
.. versionadded:: 1.4
.. rst:directive:: .. cpp:namespace-pop::
Undo the previous ``cpp:namespace-push`` directive (*not* just pop a scope).
@ -997,6 +1015,8 @@ The ``cpp:namespace-pop`` directive undoes the most recent
.. cpp:namespace-push:: A::B
.. versionadded:: 1.4
Info field lists
~~~~~~~~~~~~~~~~~