MCPcopy Create free account
hub / github.com/davisking/dlib / cast_to_wstring

Function cast_to_wstring

dlib/string/string.h:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 typename T
249 >
250 const std::wstring cast_to_wstring (
251 const T& item
252 )
253 {
254 std::basic_ostringstream<wchar_t> sout;
255 sout << item;
256 if (!sout)
257 throw cast_to_string_error();
258 return sout.str();
259 }
260#endif
261
262// ----------------------------------------------------------------------------------------

Callers 1

string_testFunction · 0.85

Calls 2

strMethod · 0.45

Tested by 1

string_testFunction · 0.68