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

Function cast_to_string

dlib/string/string.h:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 typename T
232 >
233 const std::string cast_to_string (
234 const T& item
235 )
236 {
237 std::ostringstream sout;
238 sout << item;
239 if (!sout)
240 throw cast_to_string_error();
241 return sout.str();
242 }
243
244 // don't declare this if we are using mingw because it apparently doesn't
245 // support iostreams with wchar_t?

Callers 15

cluster_datasetFunction · 0.85
load_imageMethod · 0.85
rotate_datasetFunction · 0.85
mainFunction · 0.85
matrix_double__getitem__Function · 0.85
printFunction · 0.85
randomly_subsampleFunction · 0.85
listen_and_connect_allFunction · 0.85
geometry_testFunction · 0.85
perform_testMethod · 0.85
perform_testMethod · 0.85

Calls 2

strMethod · 0.45

Tested by 4

geometry_testFunction · 0.68
perform_testMethod · 0.68
perform_testMethod · 0.68
string_testFunction · 0.68