MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / capacity

Method capacity

tests/framework/src/doctest.cpp:655–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 return data.size;
654}
655DOCTEST_GCC_SUPPRESS_WARNING_POP
656
657String::size_type String::capacity() const {
658 if(isOnStack())
659 return len;
660 return data.capacity;
661}
662
663String String::substr(size_type pos, size_type cnt) && {
664 cnt = std::min(cnt, size() - 1 - pos);

Calls 1

isOnStackFunction · 0.85

Tested by

no test coverage detected