{"version":"1.0","blog_title":"myoukaku\u306e\u30d6\u30ed\u30b0","url":"https://myoukaku.hatenablog.com/entry/2015/07/30/000000","type":"rich","provider_url":"https://hatena.blog","image_url":null,"author_url":"https://blog.hatena.ne.jp/myoukaku/","description":"\u7a7a\u306estd::vector\u306b\u5bfe\u3057\u3066data()\u3092\u547c\u3073\u51fa\u3057\u305f\u6642\u3001\u4efb\u610f\u306e\u5024\u3092\u8fd4\u3057\u3066\u3082\u826f\u3044\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u3002 \u3064\u307e\u308a nullptr \u304b\u3082\u3057\u308c\u306a\u3044 \u6709\u52b9\u306a\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u3057\u305f\u30dd\u30a4\u30f3\u30bf\u304b\u3082\u3057\u308c\u306a\u3044 \u306a\u305c\u304b\u3068\u3044\u3046\u3068 [data(),data() + size()) \u304c\u6709\u52b9\u306a\u7bc4\u56f2\u3092\u8868\u3059\u3068\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3001size()\u304c0\u306e\u5834\u5408\u306fdata()\u306e\u5024\u304c\u4f55\u3067\u3042\u308c\u3053\u308c\u3092\u6e80\u305f\u3059\u304b\u3089\u3002 \u53c2\u8003\uff1a c++ - What should std::vector::data() return if the vector is empty? - Stack Overflow data()\u3092\u4f7f\u3046\u3068\u304d\u306f\u3001\u305d\u306e\u524d\u306bempty()\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u2026","provider_name":"Hatena Blog","width":"100%","blog_url":"https://myoukaku.hatenablog.com/","categories":["C++","C++11"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmyoukaku.hatenablog.com%2Fentry%2F2015%2F07%2F30%2F000000\" title=\"\u7a7a\u306estd::vector\u306edata\u306e\u5024 - myoukaku\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u7a7a\u306estd::vector\u306edata\u306e\u5024","height":"190","published":"2015-07-30 00:00:00","author_name":"myoukaku"}