PamPort * find_port (const std::string& port_name) const {
for (const auto& pn : _ports)
if (pn->name() == port_name)
return pn;
}


would be a better way if your...