MCPcopy Create free account
hub / github.com/Compaile/ctrack / c_str

Function c_str

test/doctest.h:642–642  ·  view source on GitHub ↗

the only functions I'm willing to leave in the interface - available for inlining

Source from the content-addressed store, hash-verified

640
641 // the only functions I'm willing to leave in the interface - available for inlining
642 const char* c_str() const { return const_cast<String*>(this)->c_str(); } // NOLINT
643 char* c_str() {
644 if (isOnStack()) {
645 return reinterpret_cast<char*>(buf);

Callers 1

DOCTEST_DEFINE_DECORATORFunction · 0.85

Calls 1

isOnStackFunction · 0.85

Tested by

no test coverage detected