34 #ifndef __BASE_CPRINTF_HH__
35 #define __BASE_CPRINTF_HH__
136 template<
typename T,
typename ...Args>
void
145 template<
typename ...Args>
void
154 template<
typename ...Args>
void
157 ccprintf(std::cout, format, args...);
160 template<
typename ...Args> std::string
163 std::stringstream stream;
173 template<
typename ...Args>
void
176 ccprintf(stream, format.c_str(), args...);
179 template<
typename ...Args>
void
182 ccprintf(std::cout, format.c_str(), args...);
185 template<
typename ...Args> std::string
188 return csprintf(format.c_str(), args...);
191 #endif // __CPRINTF_HH__
void ccprintf(cp::Print &print)
void add_arg(const T &data)
Print(std::ostream &stream, const std::string &format)
void format_string(std::ostream &out, const T &data, Format &fmt)
void format_float(std::ostream &out, const T &data, Format &fmt)
void format_integer(std::ostream &out, const T &data, Format &fmt)
std::string csprintf(const char *format, const Args &...args)
void format_char(std::ostream &out, const T &data, Format &fmt)
int get_number(const T &data)
Bitfield< 31, 29 > format
std::ios::fmtflags saved_flags
void cprintf(const char *format, const Args &...args)