MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / quit

Method quit

lesson7-Detection/src/utils/tinystr.h:239–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 }
238
239 void quit()
240 {
241 if (rep_ != &nullrep_)
242 {
243 // The rep_ is really an array of ints. (see the allocator, above).
244 // Cast it back before delete, so the compiler won't incorrectly call destructors.
245 delete [] ( reinterpret_cast<int*>( rep_ ) );
246 }
247 }
248
249 Rep * rep_;
250 static Rep nullrep_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected