diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-06-26 07:05:01 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-06-26 07:05:05 -0400 |
commit | ee02debb25675542d13a03b65ed49832b79b0db9 (patch) | |
tree | f3e0cc139e3751f71f29734eacf04a7e5988cf74 /src | |
parent | 452bb90c718da18a79bfad50ff9b7d1c8f1b4aa3 (diff) | |
parent | faca0a862558cf17777f36c38452ba770227cbc9 (diff) |
Merge #13531: doc: Clarify that mempool txiter is const_iterator
faca0a8625 doc: Clarify that mempool txiter is const_iterator (MarcoFalke)
Pull request description:
`iterator` and `const_iterator` are the same type for multi indexed transaction sets, but `const_iterator` should be preferred for documentation purposes.
Tree-SHA512: 83e8af36d15aa1e9fc59b3c2279504fd6f6ea3188dc43e36dec279ee0613ff07947d7143fd112bade7868b0dba59ecab3fd246cbde82e376ef965b646d9f8c4d
Diffstat (limited to 'src')
-rw-r--r-- | src/txmempool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index bda812b42f..ebfcf36e11 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -486,7 +486,7 @@ public: mutable CCriticalSection cs; indexed_transaction_set mapTx GUARDED_BY(cs); - typedef indexed_transaction_set::nth_index<0>::type::iterator txiter; + using txiter = indexed_transaction_set::nth_index<0>::type::const_iterator; std::vector<std::pair<uint256, txiter> > vTxHashes; //!< All tx witness hashes/entries in mapTx, in random order struct CompareIteratorByHash { |