Skip to content
Snippets Groups Projects
Unverified Commit c58dd2c2 authored by Han Lu's avatar Han Lu Committed by GitHub
Browse files

fixed wording (#2374)

<!-- Please make sure your PR follows our [contribution
guidelines](https://github.com/arbor-sim/arbor/tree/master/doc/contrib)
and agree to the terms outlined in the [PR
procedure](https://github.com/arbor-sim/arbor/tree/master/doc/contrib/pr.rst).
-->
parent d583a52d
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ Utility wrappers and containers ...@@ -7,7 +7,7 @@ Utility wrappers and containers
.. cpp:class:: unique_any .. cpp:class:: unique_any
A container for a single value of any type that is move constructable. A container for a single value of any type that is move constructible.
Used in the Arbor API where a type of a value passed to or from the API Used in the Arbor API where a type of a value passed to or from the API
is decided at run time. is decided at run time.
...@@ -19,7 +19,7 @@ Utility wrappers and containers ...@@ -19,7 +19,7 @@ Utility wrappers and containers
Retrieve the pointer as type T. If T is ``void *`` or the same Retrieve the pointer as type T. If T is ``void *`` or the same
as the type of the pointer stored in ``any_ptr``, return the held as the type of the pointer stored in ``any_ptr``, return the held
value, cast accordingly. Otherwise return ``nullptr``. value and cast accordingly. Otherwise, return ``nullptr``.
``any_ptr`` can be used with ``util::any_cast``, so that ``any_ptr`` can be used with ``util::any_cast``, so that
``util::any_cast<T>(p)`` is equivalent to ``p.as<T>()`` for a value ``p`` ``util::any_cast<T>(p)`` is equivalent to ``p.as<T>()`` for a value ``p``
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment