const // It is a const object...
class nullptr_t
{
public:
template<class T>
inline operator T*() const // convertible to any type of null non-member pointer...
{ return 0; }
template<class C, class T>
inline operator T C::*() const // or any type of null member pointer...
{ return 0; }
private:
void operator&() const; // Can't take address of nullptr
} nullptr = {};
-
operator T*() constиoperator T C::*() constуже определены в классе, поэтому он может автоматически встраиваться. Итак, зачем добавлятьinlineснова? - почему
void operator&() const;, а неvoid operator&() = delete? - что означает
nullptr = {};?