Om
stream_sink.hpp
Go to the documentation of this file.
1 
15 #ifndef Om_Sink_StreamSink_
16 
17  #define Om_Sink_StreamSink_ \
18  Om::Sink::StreamSink
19 
20  #include "om/sink/iterator_sink.hpp"
21 
22 namespace Om {
23 
24  namespace Sink {
25 
26  // MARK: - Om::Sink::StreamSink
27 
32  template <typename ThisItem = char>
33  class StreamSink:
34  public IteratorSink<
35  ThisItem const,
36  std::ostreambuf_iterator<ThisItem>
37  > {
38 
39  public: // MARK: public (non-static)
40 
41  explicit StreamSink(std::ostream &);
42 
43  };
44 
45  }
46 
47 }
48 
49  #include "om/sink/stream_sink.cpp"
50 
51 #endif
A Sink adapter for an output iterator.
A Sink adapter for an output stream.
Definition: stream_sink.hpp:37
StreamSink(std::ostream &)
Om header file.
The Om library.
Definition: code_point.hpp:26
Om source file.