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,6 +1,4 @@
#include <cstddef> #include <tools.hpp>
#include <cstdlib>
#include<tools.hpp>
#include <string_view> #include <string_view>
void print_help(){ void print_help(){

View File

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