Changes in libcfa/src/enum.cfa [259012e:5eb3f65]
- File:
-
- 1 edited
-
libcfa/src/enum.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r259012e r5eb3f65 4 4 #pragma GCC visibility push(default) 5 5 6 forall( ostype & | basic_ostream(ostype), E, V | CfaEnum(E, V) ) { 7 ostype & ?|?( ostype& os, E e ) { 8 return os | label( e ); 9 } 10 OSTYPE_VOID_IMPL( E ) 6 forall(ostype & | basic_ostream(ostype), E, V| CfaEnum(E, V)) 7 ostype & ?|?(ostype& os, E e) { 8 return os | type_name(e) | "." | label(e); 11 9 } 12 10 13 forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void))14 ostype & ?|?( ostype & os, E e) {15 return os | label( e);11 forall(ostype & | basic_ostream(ostype), E| CfaEnum(E, quasi_void)) 12 ostype & ?|?(ostype& os, E e) { 13 return os | type_name(e) | "." | label(e); 16 14 } 17 15 18 forall( E, V | CfaEnum(E, V) ) { // relational operators16 forall(ostype & | basic_ostream(ostype), E, V| CfaEnum(E, V)) { 19 17 int ?==?(E l, E r) { return posn(l) == posn(r); } 20 int ?!=?(E l, E r) { return posn(l) != posn(r); } 18 int ?<=?(E l, E r) { return posn(l) <= posn(r); } 19 int ?>=?(E l, E r) { return posn(l) >= posn(r); } 21 20 int ?<?(E l, E r) { return posn(l) < posn(r); } 22 int ?<=?(E l, E r) { return posn(l) <= posn(r); }23 21 int ?>?(E l, E r) { return posn(l) > posn(r); } 24 int ?>=?(E l, E r) { return posn(l) >= posn(r); }25 22 }
Note:
See TracChangeset
for help on using the changeset viewer.