| 449 | } |
| 450 | |
| 451 | void LogStream::remove(std::ostream & stream) |
| 452 | { |
| 453 | if (!bound_()) |
| 454 | return; |
| 455 | |
| 456 | StreamIterator it = findStream_(stream); |
| 457 | if (it != rdbuf()->stream_list_.end()) |
| 458 | { |
| 459 | rdbuf()->sync(); |
| 460 | // HINT: we do NOT clear the cache (because we cannot access it from here) |
| 461 | // and we do not flush incomplete_line_!!! |
| 462 | rdbuf()->stream_list_.erase(it); |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | void LogStream::removeAllStreams() |
| 467 | { |