Johannes Kapfhammer
c0d288e9e8
enable freopen to make some guides on the internet work
2019-10-28 21:28:31 +01:00
Johannes Kapfhammer
080e3f1261
add functions to redirect input/output
...
those two multiply the output into a file:
void redirect_output(const char *filename);
void redirect_output(std::string const &filename)
those two read everything from a file:
redirect_input(const char *filename);
redirect_input(std::string const& filename);
both can be resetted using:
void reset_input();
reset_output();
2019-10-28 21:26:54 +01:00
Johannes Kapfhammer
d64bc6b9ed
fix dbg macro in release mode
2019-10-12 14:50:03 +02:00
Johannes Kapfhammer
4f04ebcedf
return 64 bit integer from read_int
2019-10-12 11:19:34 +02:00
Johannes Kapfhammer
a217eec176
include all headers beforehand to fix compilation errors under clang
2019-10-12 10:44:14 +02:00
Johannes Kapfhammer
937a7f7028
fix unused variable warning
2019-10-12 08:52:08 +02:00
Johannes Kapfhammer
34a5659bcb
remove colors_enabled variable
2019-10-10 16:02:07 +02:00
Johannes Kapfhammer
be460c5602
use consistent function name
2019-10-10 15:23:10 +02:00
Johannes Kapfhammer
9709a35f46
implement pair/tuple input
2019-10-10 14:28:35 +02:00
Johannes Kapfhammer
e3f3f6470d
add missing file soi-io.hpp
2019-10-10 14:19:14 +02:00
Johannes Kapfhammer
11b6ae9729
implement read() and print() functions for easier I/O
2019-10-10 14:05:52 +02:00
Johannes Kapfhammer
a994e7d10d
replace basic_string with explicit template argument list
2019-10-07 15:30:11 +02:00
Johannes Kapfhammer
5f3c72389c
print int instead of int64_t in expression
2019-10-07 14:30:53 +02:00
Johannes Kapfhammer
4b5a124aa1
print full function name
2019-10-07 14:29:45 +02:00
Johannes Kapfhammer
bbb14ef3df
fix trailing space after string in nested types
2019-10-07 13:18:07 +02:00
Johannes Kapfhammer
e0b673e4e2
reset bold after status line
2019-10-07 13:10:16 +02:00
Johannes Kapfhammer
e724f201fc
import unordered_map
2019-10-06 21:55:54 +02:00
Johannes Kapfhammer
7fc2b533c7
fix constexpr under c++11
2019-10-06 21:55:47 +02:00
Johannes Kapfhammer
33d31af61d
make dbg() variant work under gcc and clang
2019-10-06 21:54:43 +02:00
Johannes Kapfhammer
cca34a1ad7
dbg: allow empty argument list
2019-10-06 21:17:37 +02:00
Johannes Kapfhammer
daeda942ad
use runtime function to pretty print type name
2019-10-06 20:56:37 +02:00
Johannes Kapfhammer
492a0f3c55
run clang-format
2019-10-06 18:38:23 +02:00
Johannes Kapfhammer
4d25fc25c4
fix pretty printer for recursive types
2019-10-06 18:37:37 +02:00
Johannes Kapfhammer
310d119ffb
include map
2019-10-06 18:35:55 +02:00
Johannes Kapfhammer
d594be1ac0
tweak colors
2019-10-06 17:36:48 +02:00
Johannes Kapfhammer
475a7f7910
improve handling of std:: prefixes
2019-10-06 17:33:18 +02:00
Johannes Kapfhammer
3d1c648b4f
put include all into its own header
2019-10-06 17:19:10 +02:00
Johannes Kapfhammer
d8a3ccc553
rename from soi.h to soi, including macros
2019-10-06 17:16:19 +02:00
Johannes Kapfhammer
44aa8d060a
initial commit
2019-10-06 16:45:29 +02:00