use xargs with sed

C++
#Example of use of sed command with xargs.
echo pattern | sed -i "s/{}/{}plus_addition/g" file.txt
Source

Also in C++: