Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Merge requests
!2374
rm remaining uses of PolyVector (
#914
)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
rm remaining uses of PolyVector (
#914
)
j.0
into
main
Overview
0
Commits
9
Pipelines
1
Changes
30
Merged
Wuttke, Joachim
requested to merge
j.0
into
main
1 year ago
Overview
0
Commits
9
Pipelines
1
Changes
30
Expand
This resolves
#914 (closed)
.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
43588b50
9 commits,
1 year ago
30 files
+
166
−
258
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
30
Search (e.g. *.vue) (Ctrl+P)
Base/Util/Vec.h
+
13
−
0
Options
@@ -27,6 +27,19 @@ template <class T, class S> int indexOfPtr(const T* t, const std::vector<S*>& v)
return
-
1
;
}
template
<
class
T
,
class
S
>
bool
containsPtr
(
const
T
*
t
,
const
std
::
vector
<
S
*>&
v
)
{
for
(
size_t
i
=
0
;
i
<
v
.
size
();
i
++
)
if
(
v
[
i
]
==
t
)
return
true
;
return
false
;
}
template
<
class
C
>
void
concat
(
std
::
vector
<
C
>&
v
,
const
std
::
vector
<
C
>&
w
)
{
v
.
insert
(
v
.
end
(),
w
.
begin
(),
w
.
end
());
}
}
// namespace Vec
#endif // BORNAGAIN_BASE_UTIL_VEC_H
Loading