diff options
| author | Amlal <amlal@nekernel.org> | 2025-05-08 13:38:22 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-05-08 13:38:22 +0200 |
| commit | 9a574e0a95d5e353e50c000cc723ebc6dacfc0a0 (patch) | |
| tree | 326989c95a0e4c2f68ae53734a0e3a4fcb1645d0 /examples/equiv/equiv.cc | |
| parent | e79c5ed3500e155e551dcb216c6845687c7fd4a9 (diff) | |
feat(lib): add equiv.hpp C++ header, see commit details.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'examples/equiv/equiv.cc')
| -rw-r--r-- | examples/equiv/equiv.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/equiv/equiv.cc b/examples/equiv/equiv.cc new file mode 100644 index 0000000..7375512 --- /dev/null +++ b/examples/equiv/equiv.cc @@ -0,0 +1,18 @@ +/* + string checksum example + written by Amlal El Mahrouss. + licensed under GPL-2 license + */ + +#include <astdx/equiv.hpp> +#include <iostream> + +/* finally test it */ +int main(int argc, char** argv) +{ + std::cout << std::boolalpha << astdx::is_same<bool, int>::value << std::endl; + std::cout << std::boolalpha << astdx::is_same<bool, bool>::value << std::endl; + std::cout << std::boolalpha << astdx::is_same<int, int>::value << std::endl; + + return 0; +} |
