MCPcopy Create free account
hub / github.com/acl-dev/acl / back

Method back

lib_acl_cpp/src/stdlib/string.cpp:653–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653char string::back() const
654{
655 if (empty()) {
656 return -1;
657 }
658 const char *pEnd = const_cast<string*>(this)->buf_end();
659 if (pEnd == NIL) {
660 return -1;
661 }
662 return *(pEnd - 1);
663}
664
665bool string::pop_back()
666{

Callers 4

test_rpush4Function · 0.80
test_rpush5Function · 0.80
mainFunction · 0.80
get_initializelistMethod · 0.80

Calls 2

buf_endMethod · 0.80
emptyFunction · 0.50

Tested by 2

test_rpush4Function · 0.64
test_rpush5Function · 0.64