How to know that a particular bone no longer has child bones?

How to know that a particular bone no longer has child bones in C++?
I want to know a specific bone that don’t have any child bone…