Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
e5205c86
Commit
e5205c86
authored
Jan 07, 2009
by
Mark Olesen
Browse files
minor docu change
parent
c5b38a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/memory/Xfer/Xfer.H
View file @
e5205c86
...
...
@@ -41,7 +41,7 @@ Description
xferMoveTo() functions can prove useful. An example is transferring
from a DynamicList to a List. Since the
List\<T\>::transfer(List\<T\>&) method could result in some allocated
memory becoming inaccessible, the xferMoveTo() function
can
be used to
memory becoming inaccessible, the xferMoveTo() function
should
be used to
invoke the correct List\<T\>::transfer(DynamicList\<T\>&) method.
@code
...
...
@@ -50,6 +50,16 @@ Description
labelList plainLst( xferMoveTo<labelList>(dynLst) );
@endcode
Of course, since this example is a very common operation, the
DynamicList::xfer() method transfers to a plain List anyhow.
It would thus be simpler (and clearer) just to use the following code:
@code
DynamicList<label> dynLst;
...
labelList plainLst(dynLst.xfer());
@endcode
SeeAlso
xferCopy, xferCopyTo, xferMove, xferMoveTo, xferTmp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment