I _could_ do it this way but I don't believe that this will help anything. You save a const& and an unsigned. Also, I think my code is more readable.
I all for writing time- or memory-saving code but I don't think these changes will have any measurable effect in this case.