I’ve found STL’s power in the numeric header that computes power(TYPE T, Integer a) in O(log(a)), but when I’ve written that and compiled it with g++ it gave me compile error and says error: ‘power’ was not declared in this scope. Why it happens? I know writing the power function that computes in O(log(N)) is easy buy I want to know if there is a ready function in C++’s standard libraries. Isn’t any feature added in C++11 standard?
I’ve found STL’s power in the numeric header that computes power(TYPE T, Integer a)
Share
From the page you link:
While the SGI-documentation is often helpful, be aware that it contains several deviations from the standard.