Is there are format function in C++? I need to line up a character array to the left and save to a variable.

e.g.

format("Hi", " @@@@@@@") = " Hi";
format("Bye"," @@@@@@@") = " Bye";

Thanks for any help