format helper func with locale support

master
Daniel Kolesa 2017-03-01 19:19:46 +01:00
parent 15d6b0157b
commit f13f11f54e
1 changed files with 7 additions and 0 deletions

View File

@ -992,6 +992,13 @@ inline R &&format(R &&writer, string_range fmt, A const &...args) {
return format_spec{fmt}.format(std::forward<R>(writer), args...);
}
template<typename R, typename ...A>
inline R &&format(
R &&writer, std::locale const &loc, string_range fmt, A const &...args
) {
return format_spec{fmt, loc}.format(std::forward<R>(writer), args...);
}
} /* namespace ostd */
#endif