Linked list list tutorial

in linkedlist list stl tutorial prateek bhaiya said and showed that we can’t simply print the front via listname.front() for integers however when i run the following code .
It is printing the correct output.

can you send me the link of the tutorial mentioned? because yes, this DOES work always, unless the data type is not printable