Is there any use for std::nullptr_t except to disambiguate nullptr parameters?

Viewed 71

Is there really any use for the std::nullptr_t type except to help avoid function calls with a nullptr?

void f(int* pi) {}

void f(std::nullptr_t np) {}

Without f(std::nullptr_t), f(nullptr) would call f(int*).

Thanks

1 Answers
Related