Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Development
openfoam
Commits
6e75cf2e
Commit
6e75cf2e
authored
Jul 24, 2020
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
STYLE: unify HashSet list insertion (use iterator pair)
parent
85e74567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
src/OpenFOAM/containers/HashTables/HashSet/HashSet.C
src/OpenFOAM/containers/HashTables/HashSet/HashSet.C
+4
-16
No files found.
src/OpenFOAM/containers/HashTables/HashSet/HashSet.C
View file @
6e75cf2e
...
...
@@ -65,10 +65,7 @@ Foam::HashSet<Key, Hash>::HashSet(const FixedList<Key, N>& list)
:
parent_type
(
2
*
list
.
size
())
{
for
(
const
auto
&
k
:
list
)
{
this
->
insert
(
k
);
}
insert
(
list
.
begin
(),
list
.
end
());
}
...
...
@@ -77,10 +74,7 @@ Foam::HashSet<Key, Hash>::HashSet(const UList<Key>& list)
:
parent_type
(
2
*
list
.
size
())
{
for
(
const
auto
&
k
:
list
)
{
this
->
insert
(
k
);
}
insert
(
list
.
begin
(),
list
.
end
());
}
...
...
@@ -90,10 +84,7 @@ Foam::HashSet<Key, Hash>::HashSet(const IndirectListBase<Key, Addr>& list)
:
parent_type
(
2
*
list
.
size
())
{
for
(
const
auto
&
k
:
list
)
{
this
->
insert
(
k
);
}
insert
(
list
.
begin
(),
list
.
end
());
}
...
...
@@ -102,10 +93,7 @@ Foam::HashSet<Key, Hash>::HashSet(std::initializer_list<Key> list)
:
parent_type
(
2
*
list
.
size
())
{
for
(
const
auto
&
k
:
list
)
{
this
->
insert
(
k
);
}
insert
(
list
.
begin
(),
list
.
end
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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