Will an .45 ACP kill a bear?

I have a SandW MandP45 and I need to know if I come upon a bear or mountain lion, will it be able to kill the animal? How 'bout if I unload an entire magazine on it?

NOTE: Not hunting, just in case of emergency (hiking with my kids)

Thanks
2 answers 2