Iostreams and templates