Templated Portable I/O Environment