ot::LinkedList::PopAfter() method
Pops an entry after a given previous entry.
Arguments
aPrevEntry
A pointer to a previous entry. If it is not `nullptr` the entry after this will be popped, otherwise (if it is `nullptr`) the entry at the head of the list is popped.
Return value
Pointer to the entry that was popped, or `nullptr` if there is no entry to pop.
Notes
This method does not change the popped entry itself, i.e., the popped entry next pointer stays as before.