If you recall in the implementation of list:


struct list_node_base {
list_node_base* next
list_node_base* prev

...

void hook(const list_node_base*);

....
};

I wanted to look under the hood of the hook function, but can't find it anywhere in the STL library or any reference to this method via Google for that matter. All that Google pulls up are copies of <list>, which, duh, I'm looking at...

If you know how how the hook method works and could even just pseudo code it for me I'd appreciate it.

Much thanks

Recommended Answers

All 4 Replies

why do you think that function is part of stl library?

A ha! Thank you very much for your replies!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.