I was looking a these related families of standard functions in cppreference: std::round, std::floor, std::ceil and std::trunc.
Is there any reason why std::round is the only one providing specific signatures for long and long long as return type? I am struggling to think at any reason other than historical, but std::round has been added fairly recently with C++11.
Aucun commentaire:
Enregistrer un commentaire