3 ms·
C++20 introduced std::midpoint() [0] Interestingly, calculating the midpoint of doubles seems quite complex (according to gcc at least) [1] [0] https://en.cpp
by secondcoming 2y ago
C++20 introduced std::midpoint() [0]
Interestingly, calculating the midpoint of doubles seems quite complex (according to gcc at least) [1]
[0] https://en.cppreference.com/w/cpp/numeric/midpoint https://en.cppreference.com/w/cpp/numeric/midpoint
[1] https://godbolt.org/z/G1P611o7Y https://godbolt.org/z/G1P611o7Y