Is it possible to stock data to an ostream like
void write(std::ostream& os){ int x,y = 0; bool b = true; os<