diff options
Diffstat (limited to 'src/development/c++/meta.cc')
-rw-r--r-- | src/development/c++/meta.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/development/c++/meta.cc b/src/development/c++/meta.cc index e674cfd..efb3b22 100644 --- a/src/development/c++/meta.cc +++ b/src/development/c++/meta.cc @@ -2,6 +2,8 @@ #include <iostream> +// -- Example 1 - print template value arguments. + // Base case with one parameter. template<int P> void show_int() { @@ -15,6 +17,8 @@ void show_int() { show_int<P1, Params...>(); } +// -- Example 2 - print values of different types. + // Base case with one parameter. template<typename T> void show(const T& t) { |