mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
print walkers
This commit is contained in:
parent
8d1e341555
commit
473cd89d76
2
hyper.h
2
hyper.h
@ -4308,6 +4308,8 @@ inline void print(hstream& hs, const string& s) { hs.write_chars(s.c_str(), isiz
|
||||
inline void print(hstream& hs, int i) { print(hs, its(i)); }
|
||||
inline void print(hstream& hs, ld x) { print(hs, fts(x)); }
|
||||
|
||||
template<class T> void print(hstream& hs, const walker<T>& w) { print(hs, "[", w.at, "/", w.spin, "/", w.mirrored, "]"); }
|
||||
|
||||
struct comma_printer {
|
||||
bool first;
|
||||
hstream& hs;
|
||||
|
Loading…
Reference in New Issue
Block a user