Optimize and clean up SHAMap::iterator:

* Remove dependence on boost::iterator_facade.
* Rename iterator to const_iterator.
* Change value_type from shared_ptr<SHAMapItem const> to SHAMapItem.
* Install a stack-path to the current SHAMapItem in the const_iterator.
This commit is contained in:
Howard Hinnant
2015-06-30 12:15:47 -04:00
committed by Vinnie Falco
parent 30e068ae17
commit 361f1da5b8
8 changed files with 186 additions and 71 deletions

View File

@@ -207,7 +207,7 @@ debugTostr (SHAMap const& set)
{
try
{
SerialIter sit(item->slice());
SerialIter sit(item.slice());
auto const tx = std::make_shared<
STTx const>(sit);
ss << debugTxstr(tx) << ", ";