diff options
Diffstat (limited to 'nihil.util/capture_stream.ccm')
| -rw-r--r-- | nihil.util/capture_stream.ccm | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/nihil.util/capture_stream.ccm b/nihil.util/capture_stream.ccm index 7ec39a9..f061558 100644 --- a/nihil.util/capture_stream.ccm +++ b/nihil.util/capture_stream.ccm @@ -1,20 +1,13 @@ -/* - * This source code is released into the public domain. - */ - -module; - -#include <iostream> - +// This source code is released into the public domain. export module nihil.util:capture_stream; +import nihil.std; + namespace nihil { -/* - * Capture output written to a stream and redirect it to an internal string - * buffer. Call .str() to get the data written. Call .release() to stop - * capturing (or simply delete the capture_stream object). - */ +// Capture output written to a stream and redirect it to an internal string +// buffer. Call .str() to get the data written. Call .release() to stop +// capturing (or simply delete the capture_stream object). export template<typename Char, typename Traits> struct capture_stream { capture_stream(std::basic_ostream<Char, Traits> &stream) |
