#include <regex>
#include <string>
#include <iostream>
using namespace std;
int main()
{
string t = "asd asd asd";
t = regex_replace(t, regex("asd"), "sdf");
cout << t;
return 0;
}
#include <vector>
#include <random>
#include <algorithm>
#include <iterator>
#include <iostream>
using namespace std;
vector<int> randomVector(size_t size)
{
vector<int> v(size);
random_device r;
generate(v.begin(), v.end(), [&]{return r();});
return v;
}
int main()
{
vector<int> v(randomVector(100));
copy(v.begin(), v.end(), ostream_iterator<int>(cout, " "));
return 0;
}