aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/cell_helper.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-01 16:01:04 +0200
committerHampusM <hampus@hampusmat.com>2022-07-01 16:01:04 +0200
commit7307815e99a79dac42f2a9c06b0fe6171ea11ba0 (patch)
treead41ee819dc87fc2653caf720fa7d1df30c0caeb /src/interfaces/cell_helper.hpp
parent2bff8c999edde11270ecaf6fbd2d24f54d0e360b (diff)
refactor: use ranges
Diffstat (limited to 'src/interfaces/cell_helper.hpp')
-rw-r--r--src/interfaces/cell_helper.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/cell_helper.hpp b/src/interfaces/cell_helper.hpp
index 69bf8b0..38e214d 100644
--- a/src/interfaces/cell_helper.hpp
+++ b/src/interfaces/cell_helper.hpp
@@ -6,7 +6,6 @@
#include <yacppdic/factory.hpp>
-#include <list>
#include <memory>
#include <vector>
@@ -20,8 +19,8 @@ public:
-> bool = 0;
[[nodiscard]] virtual auto
- get_birth_cell_positions(const std::list<Vector2> &cell_positions) const noexcept
- -> std::list<Vector2> = 0;
+ get_birth_cell_positions(const std::vector<Vector2> &cell_positions) const noexcept
+ -> std::vector<Vector2> = 0;
[[nodiscard]] virtual auto find_neighbours(const Vector2 &cell_pos) const noexcept
-> std::vector<Vector2> = 0;