How to get the Object being pointed by a shared pointer?

Viewed 71614

I have a query. Can we get the object that a shared pointer points to directly? Or should we get the underlying RAW pointer through get() call and then access the corresponding object?

2 Answers
Related