Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CPP Ecosystem Project
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RIVOAL Samuel
CPP Ecosystem Project
Merge requests
!20
Aymeric
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Aymeric
Aymeric
into
master
Overview
0
Commits
11
Pipelines
0
Changes
2
Merged
BERTHOUMIEU Aymeric
requested to merge
Aymeric
into
master
4 years ago
Overview
0
Commits
11
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
0653eef8
Prev
Next
Show latest version
2 files
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
0653eef8
nothing
· 0653eef8
Aymeric berthoumieu
authored
4 years ago
src/Environment.cpp
+
1
−
0
View file @ 0653eef8
Edit in single-file editor
Open in Web IDE
Show full file
@@ -54,6 +54,7 @@ bool mustDie(Pet const &p) {
void
Environment
::
die
()
{
cout
<<
"At step <"
<<
nb_steps
<<
"> : "
<<
endl
;
auto
it
=
std
::
remove_if
(
pets
.
begin
(),
pets
.
end
(),
mustDie
);
pets
.
erase
(
it
,
pets
.
end
());
}
Loading