remove std::distance usage
std::distance internally runs a loop, which may or may not be optimized
away. Just use simple arithmetic.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Showing
Please register or sign in to comment
std::distance internally runs a loop, which may or may not be optimized
away. Just use simple arithmetic.
Signed-off-by: Rosen Penev <rosenp@gmail.com>