{"published":"2012-03-15 11:02:48","author_name":"rhysd","blog_title":"\u306f\u3084\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306a\u308a\u305f\u3044","title":"\u751f\u914d\u5217\u3092 std::array \u306b\u5909\u63db\u3059\u308b","version":"1.0","url":"https://rhysd.hatenablog.com/entry/20120315/1331776968","description":"constexpr \u3067\u6271\u3048\u3066\uff0c\u5b9f\u884c\u6642\u306e\u52b9\u7387\u3082\u3088\u3044\u30c7\u30fc\u30bf\u69cb\u9020\uff0b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 - \u5371\u306a\u3044RiSK\u306e\u30d6\u30ed\u30b0 \u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u914d\u5217\u3092\u7d50\u5408\u3059\u308b - iorate\u306e\u65e5\u8a18index_tuple \u3092\u4f7f\u3063\u3066 constexpr \u306a\u751f\u914d\u5217\u304b\u3089 std::array \u3078\u306e\u5909\u63db\u306e\u51e6\u7406\u3092\u3059\u308b\u914d\u5217\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\uff0e int main() { // \u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u5909\u63db\u3059\u308b constexpr int ints[] = {1, 2, 3}; constexpr auto arr3 = to_array(ints); // std::array \u306e operator[] \u306f\u975e constexpr static_assert( a\u2026","blog_url":"https://rhysd.hatenablog.com/","image_url":null,"categories":["C++"],"author_url":"https://blog.hatena.ne.jp/rhysd/","type":"rich","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frhysd.hatenablog.com%2Fentry%2F20120315%2F1331776968\" title=\"\u751f\u914d\u5217\u3092 std::array \u306b\u5909\u63db\u3059\u308b - \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>","width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog"}