... | ... | @@ -9,6 +9,8 @@ |
|
|
|
|
|
### Handling plain tmp fields
|
|
|
|
|
|
\since 1806
|
|
|
|
|
|
A `tmp` field is a commonly encountered return container. The tmp
|
|
|
`New()` factory method with forwarding makes it more convenient to
|
|
|
handle and avoid repetitve typing. For example,
|
... | ... | @@ -44,6 +46,8 @@ return tresult; |
|
|
|
|
|
### NotImplemented
|
|
|
|
|
|
\since 1806
|
|
|
|
|
|
For non-implemented functions returning a `tmp`, we use the C++
|
|
|
`nullptr` which will be automatically converted to an invalid `tmp`
|
|
|
when the code is executed.
|
... | ... | @@ -76,6 +80,8 @@ tmp<vectorField> method |
|
|
|
|
|
### Return valid, zero-sized tmp field
|
|
|
|
|
|
\since 1806
|
|
|
|
|
|
When a zero-sized tmp field is required:
|
|
|
```
|
|
|
return tmp<vectorField>::New();
|
... | ... | |