Lines Matching refs:pw_function
1 .. _module-pw_function:
4 pw_function title
7 :name: pw_function
9 * **Familiar**. ``pw_function`` provides a standard, general-purpose API for
11 * **Optimized**. ``pw_function`` doesn't allocate (unless you want it to) and
18 #include "pw_function/function.h"
46 .. _module-pw_function-start:
55 Add ``@pigweed//pw_function`` to your target's ``deps``:
63 "@pigweed//pw_function",
89 Link your library to ``pw_function``:
94 target_link_libraries(my_lib PUBLIC pw_function)
96 Use ``pw_function`` in your C++ code:
100 #include "pw_function/function.h"
104 .. _module-pw_function-guides:
208 .. _module-pw_function-move-semantics:
330 .. _module-pw_function-dynamic-allocation:
337 As mentioned in :ref:`module-pw_function-design`, ``pw::Function`` is an alias
373 One use case for invoking ``pw_function`` from a C-style API is to automate the
377 .. _module-pw_function-reference:
405 .. doxygenfile:: pw_function/pointer.h
420 .. _module-pw_function-design:
432 .. _module-pw_function-non-literal: