A
arvind.nm
hi,
if i create a linked list like list<char> stk;
if i want to remove the first element from the list and i write
stk.pop_front() the node is still present but the char stored is now
'\0',why? how can i delete the first node. will
stk.erase(stk.begin()) work?
if i create a linked list like list<char> stk;
if i want to remove the first element from the list and i write
stk.pop_front() the node is still present but the char stored is now
'\0',why? how can i delete the first node. will
stk.erase(stk.begin()) work?