| 64 | |
| 65 | template<typename SomeDrawable> |
| 66 | SomeDrawable* DrawableDeque::find() { |
| 67 | auto it = DrawableDeque::findIterator<SomeDrawable>(); |
| 68 | if (it != _drawables.end()) { |
| 69 | return static_cast<SomeDrawable*>(it->get()); |
| 70 | } |
| 71 | return nullptr; |
| 72 | } |
| 73 | |
| 74 | template<typename SomeDrawable> |
| 75 | SomeDrawable* DrawableDeque::find(const std::string &name) { |