Created
June 17, 2014 14:47
-
-
Save anonymous/2d80c4e33068359e625f to your computer and use it in GitHub Desktop.
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> | |
struct idx_vector { | |
typedef int index; | |
index add(T); | |
T get(index); | |
void remove(index); // invalidates index, but not other indices | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment