This little collection of snippets can be used in C/C++ projects to help document - in code - the ownership, lifetime, and consumption of arguments (both in signatures and invocation expressions).
The header provided is a set of simple #define
statements, allowing the documentation to run.
NOTE: This does impose the limitation that the identifiers
uses
,owns
, andconsumes
will no longer work in your code!