summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/io/print.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev/lib/io/print.hpp')
-rw-r--r--dev/lib/io/print.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev/lib/io/print.hpp b/dev/lib/io/print.hpp
new file mode 100644
index 0000000..0a5b5e2
--- /dev/null
+++ b/dev/lib/io/print.hpp
@@ -0,0 +1,29 @@
+/*
+ * File: print.hpp
+ * Purpose: SNU Print library
+ * Author: Amlal El Mahrouss. (founder@snu.systems)
+ * Copyright 2025, SNU Systems Corp all rights reserved.
+ */
+
+#ifndef _SNU_PRINT_HPP
+#define _SNU_PRINT_HPP
+
+#include <iostream>
+
+namespace snu
+{
+ template <typename... T>
+ inline void print(T... fmt)
+ {
+ std::cout << std::move(fmt...);
+ }
+
+ template <typename... T>
+ inline void println(T... fmt)
+ {
+ std::cout << std::move(fmt...);
+ std::cout << std::endl;
+ }
+} // namespace snu
+
+#endif // ifndef _SNU_PRINT_HPP \ No newline at end of file