Translate PlaceholderParser::apply_config to C++.