Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 2.3 KB

media_and_streams.md

File metadata and controls

39 lines (33 loc) · 2.3 KB

Media and Streams

Up to Documentation.

The std library provides a nice separation between media and streams. Streams are stateless formatters, while media are the actual containers. The idea is that any stream can operate on any medium.

The notion of media is not easily noticeable, because there are only two concrete implementations with unclear names - stringbuf and filebuf. The really important class, though, is the semi-abstract streambuf. There a three small methods that a medium may have to override to become operational.

abc provides several media and streams that could be mixed and matched. Follow the links to read more about each class.

Media

Streams