Files
2024-08-31 12:07:21 +03:00

25 lines
321 B
C++

#pragma once
#include "SortedBag.h"
class SortedBag;
class SortedBagIterator
{
friend class SortedBag;
private:
const SortedBag& bag;
SortedBagIterator(const SortedBag& b);
//TODO - Representation
BSTNode* current;
int currentCount;
public:
TComp getCurrent();
bool valid();
void next();
void first();
};