31 using ProxyMapperList = std::vector<std::unique_ptr<ProxyMapperInterface>>;
32 ProxyMapperList* g_proxy_mapper_list;
37 if (g_proxy_mapper_list ==
nullptr) {
38 g_proxy_mapper_list =
new ProxyMapperList();
43 delete g_proxy_mapper_list;
50 g_proxy_mapper_list =
nullptr;
54 bool at_start, std::unique_ptr<ProxyMapperInterface> mapper) {
57 g_proxy_mapper_list->insert(g_proxy_mapper_list->begin(),
60 g_proxy_mapper_list->emplace_back(
std::move(mapper));
66 char** name_to_resolve,
69 for (
const auto& mapper : *g_proxy_mapper_list) {
70 if (mapper->MapName(
server_uri,
args, name_to_resolve, new_args)) {
82 for (
const auto& mapper : *g_proxy_mapper_list) {
83 if (mapper->MapAddress(address,
args, new_address, new_args)) {