IRIX 6.5 » Books » Developer »
Standard Template Library Programmer's Guide
(document number: 007-3426-004 / published: 1999-05-21)
table of contents | additional info | download
find in page
| Category: functors | Component type: concept |
| Result type | The type returned when the Generator is called |
| F | A type that is a model of Generator |
| Result | The result type of F |
| f | Object of type F |
| Name | Expression | Type requirements | Return type |
|---|---|---|---|
| Function call | f() | Result |
| Name | Expression | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
| Function call | f() | Returns some value of type Result [1] | The return value is in f's range. |
[1] Two different invocations of f may return different results: a Generator may refer to local state, perform I/O, and so on. The expression f() is permitted to change f's state; f might, for example, represent a pseudo-random number generator.
Standard Template Library Programmer's Guide
(document number: 007-3426-004 / published: 1999-05-21)
table of contents | additional info | download
Copyright © 1993-2007 SGI, Inc. All rights reserved.