| 101 | plugins.push_back(std::move(p)); |
| 102 | } |
| 103 | void Unload(const string& plugin) |
| 104 | { |
| 105 | plugins.erase( |
| 106 | remove_if( |
| 107 | plugins.begin(), |
| 108 | plugins.end(), |
| 109 | [&](auto& p){ return p->Name() == plugin; } |
| 110 | ), |
| 111 | plugins.end() |
| 112 | ); |
| 113 | } |
| 114 | void PrintLoaded(ostream& out) const |
| 115 | { |
| 116 | for (auto& p: plugins) |