master
Daniel Kolesa 2015-07-01 01:46:01 +01:00
parent b51e84c8b0
commit 809e4825ae
2 changed files with 5 additions and 1 deletions

View File

@ -151,6 +151,6 @@ static inline void writeln(const T &v, const A &...args) {
putc('\n', ::stdout);
}
}
} /* namespace octa */
#endif

View File

@ -115,6 +115,7 @@ struct StringRangeBase: InputRange<
T &operator[](octa::Size i) const { return p_beg[i]; }
void put(T v) {
if (empty()) return;
*(p_beg++) = v;
}
@ -156,6 +157,9 @@ public:
StringBase(const A &a = A()): p_buf(1, '\0', a) {}
StringBase(Size n, const T &val = T(), const A &al = A()):
p_buf(n + 1, val, al) {}
StringBase(const StringBase &s): p_buf(s.p_buf) {}
StringBase(const StringBase &s, const A &a):
p_buf(s.p_buf, a) {}