Changes in src/libcfa/iostream [e1780a2:53a6c2a]
- File:
-
- 1 edited
-
src/libcfa/iostream (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
re1780a2 r53a6c2a 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 9 16:42:47201713 // Update Count : 1 3112 // Last Modified On : Fri Jul 7 08:35:59 2017 13 // Update Count : 118 14 14 // 15 15 … … 46 46 }; // ostream 47 47 48 // trait writeable( otype T ) { 49 // forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T ); 50 // }; // writeable 51 52 trait writeable( otype T, dtype ostype | ostream( ostype ) ) { 53 ostype * ?|?( ostype *, T ); 48 trait writeable( otype T ) { 49 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T ); 54 50 }; // writeable 55 51 … … 81 77 82 78 // tuples 83 forall( dtype ostype, otype T, ttype Params | writeable( T, ostype ) | { ostype * ?|?( ostype *, Params ); } ) 84 ostype * ?|?( ostype * os, T arg, Params rest ); 79 forall( dtype ostype, otype T, ttype Params | ostream( ostype ) | writeable( T ) | { ostype * ?|?( ostype *, Params ); } ) ostype * ?|?( ostype * os, T arg, Params rest ); 85 80 86 81 // manipulators … … 95 90 96 91 // writes the range [begin, end) to the given stream 97 forall( dtype ostype, otype elt_type | writeable( elt_type, ostype ), otype iterator_type | iterator( iterator_type, elt_type ) )98 void write( iterator_type begin, iterator_type end, os type *os );92 forall( otype elt_type | writeable( elt_type ), otype iterator_type | iterator( iterator_type, elt_type ), dtype os_type | ostream( os_type ) ) 93 void write( iterator_type begin, iterator_type end, os_type *os ); 99 94 100 forall( dtype ostype, otype elt_type | writeable( elt_type, ostype ), otype iterator_type | iterator( iterator_type, elt_type ) )101 void write_reverse( iterator_type begin, iterator_type end, os type *os );95 forall( otype elt_type | writeable( elt_type ), otype iterator_type | iterator( iterator_type, elt_type ), dtype os_type | ostream( os_type ) ) 96 void write_reverse( iterator_type begin, iterator_type end, os_type *os ); 102 97 103 98 //---------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.