I have a list with names of employers such as:
Node 1: Jill, Matt, Joe, Bob, Matt
Node 2: Jeff, James, John, Jonathan, John, Edward
Node 3: Matt, Doe, Ron, Pablo, Ron, Chase, Ron, Chase, Loui
and I'm trying to get it to where if it sees a repeat it will send it to the front of the list and delete that current node, so that it will look like this
Node 1: Matt, Jill, Joe, Bob
Node 2: John, Jeff, James, Jonathan, Edward
Node 3: Chase, Ron, Matt, Doe, Pablo, Loui
Unfortunately, My output is close to what I would like. It's deleting the duplicate entries, but it's not sending to the front. .
My output:
Node 1: Jill, Matt, Joe, Bob,
std::list