just wondering how to use (pass or return) a pointer to the current object in c++?
in my case I have a map of nodes, and I want to assign a node a child, and in doing so have the current node be added as a parent to the child
below is what I have right now
void node::assign_child(node* child)
{
children.push_back(child);
child->parents.push_back(*this???);
}