File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 474474//!
475475//! In an intrusive doubly-linked list, the collection itself does not own the memory in which
476476//! each of its elements is stored. Instead, each client is free to allocate space for elements it
477- //! adds to the list in whichever manner it likes, including on the stack! Elements can live on a
478- //! stack frame that lives shorter than the collection does provided the elements that live in a
479- //! given stack frame are removed from the list before going out of scope.
477+ //! adds to the list in whichever manner it likes, including on the stack! Elements can be stored
478+ //! in a stack frame shorter-lived than the collection, provided they are removed from the list
479+ //! before that frame goes out of scope.
480480//!
481481//! To make such an intrusive data structure work, every element stores pointers to its predecessor
482482//! and successor within its own data, rather than having the list structure itself managing those
You can’t perform that action at this time.
0 commit comments