As I've mentioned earlier in this thread, a simple and robust way for extending the functionality of a standard library container is to write your own algorithms. I mean, that's what is being desired if I'm correct. You don't want to access any internals into the container, like whatever implementation-defined types contained or private methods, right? So there's absolutely no need to derive in these cases. I know its fun to derive, but that's not an end in and of itself. And not everything in c++ has to be put inside a class...
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
"It's hard to believe in something you don't understand." -- the sidhi X-files episode
galathaea: prankster, fablist, magician, liar