{"width":"100%","provider_url":"https://hatena.blog","height":"190","categories":["C++","\u65e5\u8a18","\u6280\u8853","\u30cd\u30bf"],"url":"https://mahou-ptr.hatenablog.com/entry/2022/09/26/122709","description":"\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30e2\u30fc\u30eb\u3068\u304b\u3092\u6b69\u3044\u3066\u3044\u308b\u3068\u300cniko and \u2026\u300d\u3092\u3088\u304f\u898b\u308b \u3082\u3057\u3042\u306a\u305f\u304cC++er\u306a\u3089\u3001\u3059\u3050\u306b\u6c17\u304c\u4ed8\u3044\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u3002 \u3042\u3001\u3053\u308cC++\u306e\u30b3\u30fc\u30c9\u3060\u3063\u3066 int main() { auto f = [](auto... niko) constexpr { return (niko and ...); }; static_assert(f(true, true, true)); } [C++] gcc 11.1.0 - Wandbox \u307e\u3068\u3081 fold expression \u306f\u3044\u3044\u305e","author_name":"mahou_ptr","title":"niko and \u2026\u3000\u306b\u5bfe\u3057\u3066\u601d\u3046\u4e8b","blog_url":"https://mahou-ptr.hatenablog.com/","image_url":null,"provider_name":"Hatena Blog","version":"1.0","type":"rich","blog_title":"\u30b2\u30fc\u30e0\u4f5c\u308a\u306f\u697d\u3057\u3044","published":"2022-09-26 12:27:09","author_url":"https://blog.hatena.ne.jp/mahou_ptr/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmahou-ptr.hatenablog.com%2Fentry%2F2022%2F09%2F26%2F122709\" title=\"niko and \u2026\u3000\u306b\u5bfe\u3057\u3066\u601d\u3046\u4e8b - \u30b2\u30fc\u30e0\u4f5c\u308a\u306f\u697d\u3057\u3044\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}