Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251break;252}253case 7:254test.reserve(prov.ConsumeIntegralInRange<size_t>(0, 32767));255break;256case 8:257test.shrink_to_fit();258break;259case 9:260test.clear();261break;262case 10: {263auto n = prov.ConsumeIntegralInRange<size_t>(0, 32767);264auto value = prov.ConsumeIntegral<int>();265test.assign(n, value);266} break;267case 11:268test.swap();269break;270case 12:271test.copy();272break;273case 13:274test.move();275break;276case 14: {277auto pos = prov.ConsumeIntegralInRange<size_t>(0, test.size() - 1);278auto value = prov.ConsumeIntegral<int>();279test.update(pos, value);280} break;281case 15:282test.erase(prov.ConsumeIntegralInRange<size_t>(0, test.size() - 1));283break;284case 16:285test.pop_back();286break;287}288}290test.test();291}
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.