aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/development/c++.md
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-05-29 15:58:48 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-05-29 15:58:48 +0200
commit08f554df4ee9a68a0e4694ba9930561ecc196ecd (patch)
tree25223530cdd39131fbcc79cfbb513bffeb28ab07 /src/development/c++.md
parent80fa1be3da1b5a20042eccd04df57b01a30a7744 (diff)
downloadnotes-08f554df4ee9a68a0e4694ba9930561ecc196ecd.tar.gz
notes-08f554df4ee9a68a0e4694ba9930561ecc196ecd.zip
c++: perfect fwd example
Diffstat (limited to 'src/development/c++.md')
-rw-r--r--src/development/c++.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/development/c++.md b/src/development/c++.md
index 655a603..2fc7a09 100644
--- a/src/development/c++.md
+++ b/src/development/c++.md
@@ -93,6 +93,11 @@ A more detailed description is available in the SO discussion [How does
{{#include c++/tmpl-pair.cc:3:}}
```
+# Example: Perfect forwarding
+```cpp
+{{#include c++/fwd-perfect.cc:3:}}
+```
+
[gist-strict-asliasing]: https://gist.github.com/shafik/848ae25ee209f698763cffee272a58f8
[parameter-pack]: https://en.cppreference.com/w/cpp/language/parameter_pack
[enable-if]: https://en.cppreference.com/w/cpp/types/enable_if