What does it mean for a data structure to be “intrusive”?
I've seen the term intrusive used to describe data structures like lists and stacks, but what does it mean? Can you give a code example of an intrusive data structure, and how it differs from a non-intrusive one? Also, why make it intrusive (or, non-intrusive)? What are the benefits? What are the disadvantages? An intrusive data structure is one that requires help from the elements it intends to store in order to store them. Let me reword that. When you put something into that data structure, that "something" becomes aware of the fact that it is in that data structure, in some way. Adding the