title: What is the correct way to raise an integer to a positive integer power in C++?
body: <p>We know that for <a href="https://stackoverflow.com/questions/2398442/why-isnt-int-powint-base-int-exponent-in-the-standard-c-libraries">various reasons</a>, there is no standard integer power function in C++. I'm performing exact arithmetic with rather small integers, what is the correct way to compute powers?</p>