Why is the experimental name is_ready() considered as an enhancement to std::future and not ready() which is more consistent with the STL coding style? Future already has a method called valid() which also doesn't have the is_ prefix.
Should C++ std::future<T> method be named is_ready() or ready()?
486 Views Asked by Daniel Eiband At
2
I suspect it's because of already existing enum constant
std::future_status::ready. Sois_ready()checks for the statusready. Although they both are in different naming scopes, I assume authors wish to avoid name intersection.