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

Function pop

tests/framework/src/doctest.cpp:256–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 String pop() {
257 if (stack.empty())
258 DOCTEST_INTERNAL_ERROR("TLSS was empty when trying to pop!");
259
260 std::streampos pos = stack.back();
261 stack.pop_back();
262 unsigned sz = static_cast<unsigned>(ss.tellp() - pos);
263 ss.rdbuf()->pubseekpos(pos, std::ios::in | std::ios::out);
264 return String(ss, sz);
265 }
266 } g_oss;
267
268 std::ostream* tlssPush() {

Callers 1

~SPSCQueueMethod · 0.50

Calls 5

StringClass · 0.50
emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45
tellpMethod · 0.45

Tested by

no test coverage detected