diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-06-29 14:41:51 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-06-29 14:45:50 +0200 |
| commit | 9158f48048eb8d56f4e9e6281d0c0b497690b4ee (patch) | |
| tree | ef72be3044a7464f0606216ddf17c5c38bb9e964 /lib/io | |
| parent | 5cd5d2bbad9976a1068cb610b10d80f6267f575f (diff) | |
feat: io/print.hpp: new print include header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib/io')
| -rw-r--r-- | lib/io/print.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/io/print.hpp b/lib/io/print.hpp new file mode 100644 index 0000000..73b7663 --- /dev/null +++ b/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 _STDX_PRINT_HPP +#define _STDX_PRINT_HPP + +#include <iostream> + +namespace snu +{ + template <typename... T> + inline void print(const T&... fmt) + { + std::cout << std::forward(fmt...); + } + + template <typename... T> + inline void println(T... fmt) + { + std::cout << std::move(fmt...); + std::cout << std::endl; + } +} // namespace snu + +#endif // ifndef _STDX_PRINT_HPP
\ No newline at end of file |
