C++11 では、NULL に代わるものとして nullptr キーワードが追加されています。 この話を聞くと「NULL じゃだめなの?」と一度は思う人は少なく無いと思います。 そこで、今回は NULL と nullptr の違いについて書いてみたいと思います。 NULL じゃ出来ないことがある 今更言うことでもないですが、NULL は以下のようにマクロで定義されています。
C++11 では、NULL に代わるものとして nullptr キーワードが追加されています。 この話を聞くと「NULL じゃだめなの?」と一度は思う人は少なく無いと思います。 そこで、今回は NULL と nullptr の違いについて書いてみたいと思います。 NULL じゃ出来ないことがある 今更言うことでもないですが、NULL は以下のようにマクロで定義されています。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く