Skip to content

Instantly share code, notes, and snippets.

@rajkumar-p
Last active March 11, 2020 19:04
Show Gist options
  • Save rajkumar-p/d0c3d7b4d2d72feaa528231316f0157f to your computer and use it in GitHub Desktop.
Save rajkumar-p/d0c3d7b4d2d72feaa528231316f0157f to your computer and use it in GitHub Desktop.
SortedList Interface
template<typename T>
class SortedList : public Set<T>
{
private:
NodeListWithLock<T> *_head;
public:
SortedList();
~SortedList();
bool add(T elem);
bool remove(T elem);
bool exists(T elem);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment