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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List of Unique Pointers
List[0]: []
Fill list with data.
List[0]: [X[1], X[2], X[3], X[4]]
Append odd members of list once again to the list.
List[0]: [X[1], NULL, X[3], NULL, X[2], X[4]]
EOF
List of Shared Pointers
List[0]: []
Fill list with data.
List[0]: [X[1]#1, X[2]#1, X[3]#1, X[4]#1]
Append odd members of list once again to the list.
List[0]: [X[1]#1, X[2]#2, X[3]#1, X[4]#2, X[2]#2, X[4]#2]
EOF
Output obtained thanks to http://cpp.sh/: