26#ifndef ROUTER_SRC_REST_MRS_SRC_HELPER_STRING_REPLACE_H_
27#define ROUTER_SRC_REST_MRS_SRC_HELPER_STRING_REPLACE_H_
33template <
typename Function>
35 for (
char &c :
value) {
36 if (to_replace(c)) c = replace_with;
std::function< void(const Type)> Function
Definition: ut0counter.h:241
void replace_if(std::string &value, Function &&to_replace, char replace_with)
Definition: replace.h:34
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83