View source code
							
							
						
								Display the source code in std/checkedint.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.checkedint.Checked.opEquals
Compares this against rhs for equality.
						
				bool opEquals(U, _)
				(
				
				  U rhs
				
				)
				
				if (isIntegral!U || isFloatingPoint!U || is(U == bool) || is(U == Checked!(V, W), V, W) && is(typeof(this == rhs
				If U is also an instance of Checked, both hooks (left- and right-hand
    side) are introspected for the method hookOpEquals. If both define it,
    priority is given to the left-hand side.
Parameters
| Name | Description | 
|---|---|
| rhs | Right-hand side to compare for equality | 
Returns
If Hook defines hookOpEquals, the function forwards to         hook. Otherwise, the result of the
        built-in operation get == rhs is returned.
Example
import stdAuthors
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.