{"blog_title":"\u306f\u3084\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306a\u308a\u305f\u3044","type":"rich","author_name":"rhysd","width":"100%","provider_name":"Hatena Blog","url":"https://rhysd.hatenablog.com/entry/2014/03/29/232412","blog_url":"https://rhysd.hatenablog.com/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frhysd.hatenablog.com%2Fentry%2F2014%2F03%2F29%2F232412\" title=\" Uniform initialization \u3067\u56f0\u308b\u30d1\u30bf\u30fc\u30f3\uff08std::string\uff09 - \u306f\u3084\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306a\u308a\u305f\u3044\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++"],"provider_url":"https://hatena.blog","title":" Uniform initialization \u3067\u56f0\u308b\u30d1\u30bf\u30fc\u30f3\uff08std::string\uff09","published":"2014-03-29 23:24:12","author_url":"https://blog.hatena.ne.jp/rhysd/","version":"1.0","image_url":null,"description":"C++11 \u3067\uff0c() \u3067\u306a\u304f {} \u3067\u521d\u671f\u5316\u3059\u308b\u7d71\u4e00\u521d\u671f\u5316\uff08Uniform initialization\uff09\u304c\u5165\u3063\u305f\uff0e\u666e\u6bb5\u306f\u3053\u308c\u3092\u4f7f\u3063\u3066\u3044\u308b\u3051\u308c\u3069\uff0c\u3053\u306e\u9593\u3053\u308c\u3067 std::string \u3067\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\uff0e std::string \u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4e2d\u306b\u306f\uff0cchar \u578b\u306e\u5024\u3092\u4e00\u5b9a\u56de\u6570\u7e70\u308a\u8fd4\u3059\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u3042\u308b\uff0e basic_string( size_type count, CharT ch, const Allocator& alloc = Allocator() ); \u3053\u308c\u3092\u4f7f\u304a\u3046\u3068\u3057\u3066 std::string{3, 'a'} \u306a\u3069\u3068\u66f8\u3053\u3046\u3068\u3059\u308b\u3068\uff0cnarrow conversion \u3067\u30b3\u30f3\u2026"}