sink and source for std::{i,o}stream