std :: io_traits
#include <std/io_traits.h> source
#include <std/io_traits.h>
generic<R: Reader, W: Writer> long long copy_stream(&R r, &W w)
Copies r into w until r's end. Returns the byte count copied, or -1 if a read or write failed (what was copied before stays written).