MCPcopy Create free account
hub / github.com/devosoft/avida / operator--

Method operator--

avida-core/source/tools/cString.h:616–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616char cString::cCharProxy::operator-- (int dummy){ // lvalue (postfix)
617 (void)dummy;
618 char rv = (*(string.value))[index];
619 string.CopyOnWrite();
620 --(*(string.value))[index];
621 return rv;
622}
623
624cString::cCharProxy::operator char () const { // rvalue
625 return static_cast<char>((*(string.value))[index]);

Callers

nothing calls this directly

Calls 1

CopyOnWriteMethod · 0.80

Tested by

no test coverage detected