Om
stream_sink.cpp
Go to the documentation of this file.
1 
15 #ifndef Om_Sink_StreamSink_
16 
17  #include "om/sink/stream_sink.hpp"
18 
19 #else
20 
21 // MARK: - Om::Sink::StreamSink
22 
23  #define Template_ \
24  template <typename ThisItem>
25 
26  #define Type_ \
27  Om::Sink::StreamSink<ThisItem>
28 
29 // MARK: public (non-static)
30 
31 Template_
32 inline Type_::StreamSink(std::ostream & theStream):
33 IteratorSink<
34  ThisItem const,
35  std::ostreambuf_iterator<ThisItem>
36 >(theStream) {}
37 
38  #undef Type_
39  #undef Template_
40 
41 #endif
Om header file.