Вопрос

What is the type of variable "something" in C++ 11 standard initialized by

auto something = nullptr;

?

Это было полезно?

Решение

The type of that is std::nullptr_t which is a single valued type introduced in C++11 to represent a null pointer and which is implicitly convertible to any other pointer type.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top