{"url":"https://waken.hatenablog.com/entry/20070502/1178887690","type":"rich","published":"2007-05-02 21:48:10","title":"mask\u3092for\u3067\u56de\u3059\u3068\u304d\u306b\u30b9\u30de\u30fc\u30c8\u306b\u66f8\u304f\u65b9\u6cd5","version":"1.0","author_name":"wkpn","author_url":"https://blog.hatena.ne.jp/wkpn/","provider_url":"https://hatena.blog","blog_title":"\u8e0a\u308b\u30d7\u30ed\u30b0\u30e9\u30de\u30fc","height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwaken.hatenablog.com%2Fentry%2F20070502%2F1178887690\" title=\"mask\u3092for\u3067\u56de\u3059\u3068\u304d\u306b\u30b9\u30de\u30fc\u30c8\u306b\u66f8\u304f\u65b9\u6cd5 - \u8e0a\u308b\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\" 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%","image_url":null,"blog_url":"https://waken.hatenablog.com/","description":"void hoge(int hoge_mask){ u32 mask = 1; int max = 10; for (int i = 0; i < max; i++, mask <<= 1) { if ((hoge_mask & mask) != 0) { //\u3053\u3053\u306b\u3001\u30de\u30b9\u30af\u3092\u901a\u3063\u305f\u3082\u306e\u3060\u3051\u304c\u884c\u3046\u51e6\u7406\u3092\u66f8\u304f } } }","categories":["c++"]}