From a6d3ae16736d7746ad6827f10c299ad84aa78a5b Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 12 Apr 2023 22:41:33 +0200 Subject: c++: add example for picking template with partial specialzations --- src/development/c++.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/development/c++.md') diff --git a/src/development/c++.md b/src/development/c++.md index e6fcfef..9dc8fb0 100644 --- a/src/development/c++.md +++ b/src/development/c++.md @@ -69,6 +69,10 @@ struct is_valid `std::declval()` creates an instance of type T in an unevaluated context. +## Template selection with partially / fully specializations. +```cpp +{{#include c++/tmpl-pair.cc:3:}} +``` [gist-strict-asliasing]: https://gist.github.com/shafik/848ae25ee209f698763cffee272a58f8 [parameter-pack]: https://en.cppreference.com/w/cpp/language/parameter_pack -- cgit v1.2.3