Does std::format() modify or move from its arguments?
14:08 10 Aug 2026

I see the signature of std::format() contains forwarding references:

template 
std::string  format(std::format_string  fmt, Args&&... args);

template 
std::wstring format(std::wformat_string fmt, Args&&... args);

Does std::format modify or move from its arguments? If not, a cleaner signature would be using const Args&... instead of Args&&.... Why isn't the function designed this way?

c++ perfect-forwarding forwarding-reference stdformat