mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-02 02:52:11 +01:00
24 lines
456 B
C
24 lines
456 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
#include <sstream>
|
||
|
|
||
|
namespace dxvk::str {
|
||
|
|
||
|
inline void format1(std::stringstream&) { }
|
||
|
|
||
|
template<typename T, typename... Tx>
|
||
|
void format1(std::stringstream& str, const T& arg, const Tx&... args) {
|
||
|
str << arg;
|
||
|
format1(str, args...);
|
||
|
}
|
||
|
|
||
|
template<typename... Args>
|
||
|
std::string format(const Args&... args) {
|
||
|
std::stringstream stream;
|
||
|
format1(stream, args...);
|
||
|
return stream.str();
|
||
|
}
|
||
|
|
||
|
}
|