You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is no data, a new object of type T is default-constructed and returned.
For simple types like int\char it won't allocate memory, just put zero value into some register and return.
template
T LinkedList::get(int index){
ListNode *tmp = getNode(index);
}
no matter success or not, an instance of T is returned, so how to judge?
The text was updated successfully, but these errors were encountered: