{"url":"https://melpon.hatenadiary.org/entry/20071120/p1","author_name":"melpon","blog_title":"melpon\u65e5\u8a18 - Haskell\u3082C++\u3082\u307e\u3068\u3082\u306b\u6271\u3048\u306a\u3044\u3078\u305f\u308c\u306e\u30da\u30fc\u30b8","categories":["program","C++"],"provider_url":"https://hatena.blog","published":"2007-11-20 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmelpon.hatenadiary.org%2Fentry%2F20071120%2Fp1\" title=\"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u3044\u308d\u3044\u308d\u66f8\u3044\u305f\u30e1\u30e2 - melpon\u65e5\u8a18 - Haskell\u3082C++\u3082\u307e\u3068\u3082\u306b\u6271\u3048\u306a\u3044\u3078\u305f\u308c\u306e\u30da\u30fc\u30b8\" 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%","type":"rich","title":"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u3044\u308d\u3044\u308d\u66f8\u3044\u305f\u30e1\u30e2","version":"1.0","blog_url":"https://melpon.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/melpon/","provider_name":"Hatena Blog","height":"190","image_url":null,"description":"// \u30d3\u30c3\u30c8\u304b\u3089\u30d0\u30a4\u30c8\u3001\u30d0\u30a4\u30c8\u304b\u3089\u30d3\u30c3\u30c8\u3078\u5358\u4f4d\u3092\u5909\u63db template<uint TValue> struct bit_to_bytes { static const uint value = TValue >> 3; }; template<uint TValue> struct byte_to_bits { static const uint value = TValue << 3; }; // 2 \u306e TValue \u4e57 template<int TValue> struct power2 { static const uint value = 1 << TValue; }; namesp\u2026"}