Report question

Question: How does shared_ptr work in if condition