What is the difference between the nextafter and the nexttoward functions of the C++ 2011 standard library ?
What is the difference between the nextafter and the nexttoward functions of the C++
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since the functions originate from C, they can’t be overloaded, which means two different names for functions that do the same but have different parameter(-type)s. Here are the original signatures:
And now the standard just says there should be a few overloads to make things nicer in C++ (
§26.8 [c.math] p11):