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

Function string_cast

dlib/string/string.h:374–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 typename alloc
373 >
374 inline const T string_cast (
375 const std::basic_string<charT,traits,alloc>& str
376 )
377 {
378 COMPILE_TIME_ASSERT(is_pointer_type<T>::value == false);
379 return string_cast_helper<T>::cast(str);
380 }
381
382 template <typename T>
383 inline const T string_cast (const char* str){ return string_cast<T>(std::string(str)); }

Callers

nothing calls this directly

Calls 1

castFunction · 0.50

Tested by

no test coverage detected