What exactly do you mean by 'algorithm'? It's a single CPU instruction. The requirements are set out in the C++ Standard. That's all you need to know, unless you are implementing it, in which case you would surely already know the answer.