From f7f091a2e6d3167fed4e1063dea266cdfff3ab55 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 19 Mar 2020 21:21:17 +0000 Subject: deploy: 6259d4ee6c06cc6ae4ce07484b75f7d327a6a52a --- c++.html | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 c++.html (limited to 'c++.html') diff --git a/c++.html b/c++.html new file mode 100644 index 0000000..110c683 --- /dev/null +++ b/c++.html @@ -0,0 +1,227 @@ + + + + + + c++ - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + +
+
+

c++

+

Type deduction

+

Force compile error to see what auto is deduced to.

+
auto foo = bar();
+
+// force compile error
+typename decltype(foo)::_;
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3