Last active
March 11, 2020 19:04
-
-
Save rajkumar-p/d0c3d7b4d2d72feaa528231316f0157f to your computer and use it in GitHub Desktop.
SortedList Interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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