Merge #11353: Small refactor of CCoinsViewCache::BatchWrite()
commit05a761932edd05cf94ffe938908baf058f38632a
authorMarcoFalke <falke.marco@gmail.com>
Fri, 10 Nov 2017 19:22:36 +0000 (10 14:22 -0500)
committerMarcoFalke <falke.marco@gmail.com>
Fri, 10 Nov 2017 19:22:45 +0000 (10 14:22 -0500)
tree793cc2adc18abbda31ebb43a3d9974d7bc24d415
parentee92243e66f2df03b3a759a8ffb75dc06f0cea0d
parent5b9748f979dd65b229e2882e670794c46e2e720b
Merge #11353: Small refactor of CCoinsViewCache::BatchWrite()

5b9748f97 Small refactor of CCoinsViewCache::BatchWrite() (Dan Raviv)

Pull request description:

  `std::unordered_map::erase( const_iterator pos )` returns an iterator to the element following the removed one. Use that to optimize (probably minor-performance-wise, and definitely code-structure-wise) the implementation of `CCoinsViewCache::BatchWrite()`.

Tree-SHA512: 00abc838ad91771cfcddd45688841c9414869b75289d09b483a7f0ba835614fe189e9c8aca8a80e3de78ee397ec14083ae52e2e92b7863b3b6eb0d0cb892c9dd