{"url":"https://whitypig.hatenadiary.org/entry/20110317/1300309188","author_url":"https://blog.hatena.ne.jp/whitypig/","categories":["C++"],"blog_url":"https://whitypig.hatenadiary.org/","description":"\u3069\u3082\u3067\u3059\u3002 \u307c\u3061\u307c\u3061\u3068\u3002 \u30e1\u30e2 associative array key-value pair self-ordering must not change the order value-initilized \u3042\u308b\u30ad\u30fc\u3067\u30de\u30c3\u30d7\u3092\u521d\u3081\u3066\u53c2\u7167\u3059\u308b\u5834\u5408\u306f\u5bfe\u5fdc\u3059\u308b\u5024\u304c\uff0cvalue-initilized \u3055\u308c\u308b\u3002 int \u306e\u5834\u5408\u306f\u30bc\u30ed\u3067\u521d\u671f\u5316\u3055\u308c\u308b\u3002 pair first, second map \u306e\u5404\u8981\u7d20\u306f pair std::rand() % n \u6b20\u70b91: n \u304c\u5c0f\u3055\u3044\u5834\u5408\uff0c\u898f\u5247\u6027\u306e\u3042\u308b\u5217\u304c\u751f\u6210\u3055\u308c\u308b\u3002 (\u4f8b) n = 2 \u306e\u5834\u5408\uff0c0\u30681\u304c\u4ea4\u4e92\u306b\u51fa\u73fe\u3059\u308b\u3068\u304b\u3002 \u3053\u308c\u306f\u300c\u30e9\u30f3\u30c0\u30e0\u300d\u3067\u306f\u306a\u3044\u3002 \u6b20\u70b92:\u2026","image_url":"http://images-jp.amazon.com/images/G/09/icons/books/comingsoon_books.gif","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwhitypig.hatenadiary.org%2Fentry%2F20110317%2F1300309188\" title=\" Accelerated C++ Chapter 07 - GONE WITH THE MEDICINE\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" Accelerated C++ Chapter 07","type":"rich","width":"100%","version":"1.0","height":"190","blog_title":"GONE WITH THE MEDICINE","provider_url":"https://hatena.blog","author_name":"whitypig","published":"2011-03-17 05:59:48"}