Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
e5205c86
Commit
e5205c86
authored
16 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
minor docu change
parent
c5b38a72
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/memory/Xfer/Xfer.H
+11
-1
11 additions, 1 deletion
src/OpenFOAM/memory/Xfer/Xfer.H
with
11 additions
and
1 deletion
src/OpenFOAM/memory/Xfer/Xfer.H
+
11
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment