Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dss:laboratoare:06 [2019/07/01 15:27]
eduard.staniloiu [Exercises]
dss:laboratoare:06 [2019/07/01 15:29] (current)
eduard.staniloiu [Exercises]
Line 254: Line 254:
 struct Checked(T, Hook) struct Checked(T, Hook)
 </​code>​ </​code>​
 +
 +In order to work with built-in types, you need to define: opAssign, opBinary, opBinaryRight,​ opCast, opCmp, opEquals, opOpAssign, opUnary.
  
 CheckedInt has customizable behavior with the help of a second type parameter, Hook. Depending on the Hook type, core operations on the underlying integral may be verified for overflow or completely redefined. Implement the following predefined hooks: CheckedInt has customizable behavior with the help of a second type parameter, Hook. Depending on the Hook type, core operations on the underlying integral may be verified for overflow or completely redefined. Implement the following predefined hooks:
dss/laboratoare/06.1561984039.txt.gz ยท Last modified: 2019/07/01 15:27 by eduard.staniloiu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0