This commit is contained in:
Zengtudor 2024-09-17 12:34:07 +08:00
commit 53f57381cc
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,3 @@
#include <cstddef>
#include <cstdlib>
#include <tools.hpp>
#include <string_view>

View File

@ -42,7 +42,7 @@ namespace zt {
};
template<typename ...Args>
inline void print(std::ostream &os,const Args&...args){
inline void raw_print(std::ostream &os,const Args&...args){
std::stringstream ss;
((ss<<args),...);
os<<ss.str();
@ -51,13 +51,13 @@ namespace zt {
template<typename ...Args>
inline void print(const Args&...args){
print(std::cin,args...);
raw_print(std::cin,args...);
return;
}
template<typename ...Args>
inline void eprint(const Args&...args){
print(std::cerr,args...);
raw_print(std::cerr,args...);
return;
}
}