// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // iostream.h -- // // Author : Richard C. Bilson // Created On : Wed May 27 17:56:53 2015 // Last Modified By : Peter A. Buhr // Last Modified On : Wed May 27 18:18:46 2015 // Update Count : 1 // #ifndef IOSTREAM_H #define IOSTREAM_H typedef unsigned long streamsize_type; context ostream( dtype ostype ) { ostype *write( ostype *, const char *, streamsize_type ); int fail( ostype * ); }; context writeable( type T ) { forall( dtype ostype | ostream( ostype ) ) ostype * ?<>?( istype *, char * ); forall( dtype istype | istream( istype ) ) istype * ?>>?( istype *, int * ); #endif // IOSTREAM_H // Local Variables: // // tab-width: 4 // // compile-command: "cfa iostream.c" // // End: //