summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/managed/ManagedContainer.hpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/core/managed/ManagedContainer.hpp b/src/core/managed/ManagedContainer.hpp
index bdab38f..ba9d488 100644
--- a/src/core/managed/ManagedContainer.hpp
+++ b/src/core/managed/ManagedContainer.hpp
@@ -322,7 +322,7 @@ public:
ManagedContainer(own_type &&other)
: owner(other.owner), c(std::move(other.c))
{
- //other.owner = nullptr;
+ // other.owner = nullptr;
}
/**
@@ -338,7 +338,7 @@ public:
{
initialize();
other.finalize(c);
- //other.owner = nullptr;
+ // other.owner = nullptr;
}
/**
@@ -356,7 +356,7 @@ public:
{
initialize();
other.finalize(c);
- //other.owner = nullptr;
+ // other.owner = nullptr;
}
/**
@@ -413,7 +413,7 @@ public:
finalize();
owner = other.owner;
c = std::move(other.c);
- //other.owner = nullptr;
+ // other.owner = nullptr;
return *this;
}
@@ -529,6 +529,18 @@ public:
}
return c.erase(first, last);
}
+
+ iterator find(Handle<Managed> elem)
+ {
+ iterator it = begin();
+ while (it != end()) {
+ if (*it == elem) {
+ break;
+ }
+ it++;
+ }
+ return it;
+ }
};
/**