Here we have our simple node struct which might be used to implement a double linked list.
template <class T>
struct node {
node<T> *prev = NULL;
node<T> *next = NULL;
T data;
};
Supposing we don't know or have reference to a node object/instance, but we do have a pointer to it's data member. T data;
How can the host node object be referenced/found from the pointer to it's data member ?