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
6e75cf2e
Commit
6e75cf2e
authored
Jul 24, 2020
by
Mark OLESEN
Browse files
STYLE: unify HashSet list insertion (use iterator pair)
parent
85e74567
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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