We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7c8d6 commit 410b50aCopy full SHA for 410b50a
examples/basic.cpp
@@ -1,9 +1,15 @@
1
#include <iostream>
2
3
-import mcpplibs.templates;
+import mcpplibs.primitive;
4
5
int main() {
6
- std::cout << "=== mcpplibs.templates basic example ===\n";
7
- mcpplibs::templates::hello_mcpp();
+ std::cout << "=== mcpplibs.primitive traits example ===\n";
+ std::cout << std::boolalpha;
8
+ std::cout << "int is std_integer: "
9
+ << mcpplibs::primitive::std_integer<int> << "\n";
10
+ std::cout << "double is std_floating: "
11
+ << mcpplibs::primitive::std_floating<double> << "\n";
12
+ std::cout << "int is underlying_type: "
13
+ << mcpplibs::primitive::underlying_type<int> << "\n";
14
return 0;
15
}
0 commit comments