| 1 |
|
| 2 |
.. _concept-example: |
| 3 |
|
| 4 |
doxygenconcept Directive Example |
| 5 |
================================ |
| 6 |
|
| 7 |
.. warning:: |
| 8 |
C++20 Concepts support was added in Doxygen v1.9.2. Please be sure to use Doxygen v1.9.2 or |
| 9 |
newer with :ref:`doxygenconcept`. |
| 10 |
|
| 11 |
Working Example |
| 12 |
--------------- |
| 13 |
|
| 14 |
This should work: |
| 15 |
|
| 16 |
.. code-block:: rst |
| 17 |
|
| 18 |
.. doxygenconcept:: Hashable |
| 19 |
:project: cpp_concept |
| 20 |
|
| 21 |
It produces this output: |
| 22 |
|
| 23 |
.. doxygenconcept:: Hashable |
| 24 |
:project: cpp_concept |
| 25 |
|
| 26 |
Failing Example |
| 27 |
--------------- |
| 28 |
|
| 29 |
This intentionally fails: |
| 30 |
|
| 31 |
.. code-block:: rst |
| 32 |
|
| 33 |
.. doxygenconcept:: MadeUpConcept |
| 34 |
:project: cpp_concept |
| 35 |
|
| 36 |
It produces the following warning message: |
| 37 |
|
| 38 |
.. warning:: |
| 39 |
doxygenconcept: Cannot find concept "MadeUpConcept" in doxygen xml output |