| 1931 | } |
| 1932 | |
| 1933 | void flush() { |
| 1934 | auto size = this->size(); |
| 1935 | this->clear(); |
| 1936 | const T* begin = data_; |
| 1937 | const T* end = begin + this->limit(size); |
| 1938 | out_ = copy<T>(begin, end, out_); |
| 1939 | } |
| 1940 | |
| 1941 | public: |
| 1942 | explicit iterator_buffer(OutputIt out, size_t n = buffer_size) |