Demo entry 2916302

nullptr

   

Submitted by anonymous on Nov 02, 2015 at 07:03
Language: C++. Code size: 279 Bytes.

const
class {
public:
  // 任意のポインタ型への変換演算子
  template <class T>
  operator T*() const
  { return 0; }

  // 任意のメンバポインタ型への変換演算子
  template <class C, class T>
  operator T C::*() const
  { return 0; }

private:
 void operator&() const; // アドレスは取得できない
} nullptr = {};

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).