mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[ADT] Remove WrappedPairNodeDataIterator (NFC)
The last use was removed on Jul 16, 2020 in commit f1d4db4f0cdcbfeaee0840bf8a4fb5dc1b9b56fd.
This commit is contained in:
parent
bab3758071
commit
45ba93f745
@ -350,34 +350,6 @@ template <typename WrappedIteratorT,
|
||||
using raw_pointer_iterator =
|
||||
pointer_iterator<pointee_iterator<WrappedIteratorT, T1>, T2>;
|
||||
|
||||
// Wrapper iterator over iterator ItType, adding DataRef to the type of ItType,
|
||||
// to create NodeRef = std::pair<InnerTypeOfItType, DataRef>.
|
||||
template <typename ItType, typename NodeRef, typename DataRef>
|
||||
class WrappedPairNodeDataIterator
|
||||
: public iterator_adaptor_base<
|
||||
WrappedPairNodeDataIterator<ItType, NodeRef, DataRef>, ItType,
|
||||
typename std::iterator_traits<ItType>::iterator_category, NodeRef,
|
||||
std::ptrdiff_t, NodeRef *, NodeRef &> {
|
||||
using BaseT = iterator_adaptor_base<
|
||||
WrappedPairNodeDataIterator, ItType,
|
||||
typename std::iterator_traits<ItType>::iterator_category, NodeRef,
|
||||
std::ptrdiff_t, NodeRef *, NodeRef &>;
|
||||
|
||||
const DataRef DR;
|
||||
mutable NodeRef NR;
|
||||
|
||||
public:
|
||||
WrappedPairNodeDataIterator(ItType Begin, const DataRef DR)
|
||||
: BaseT(Begin), DR(DR) {
|
||||
NR.first = DR;
|
||||
}
|
||||
|
||||
NodeRef &operator*() const {
|
||||
NR.second = *this->I;
|
||||
return NR;
|
||||
}
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
#endif // LLVM_ADT_ITERATOR_H
|
||||
|
Loading…
Reference in New Issue
Block a user