tag:blogger.com,1999:blog-3636872937372639901.post5257958202157725174..comments2024-03-27T21:24:43.584+09:00Comments on 本の虫: インデックス付きrange-based forに必要なのはネストされた構造化束縛ではなくてif constexprだった江添亮http://www.blogger.com/profile/13387122818743087721noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3636872937372639901.post-80457184282246532082021-08-08T19:27:57.301+09:002021-08-08T19:27:57.301+09:00whoah this blog is excellent i like studying
your ...<br />whoah this blog is excellent i like studying<br />your posts. Stay up the good work! You recognize, a lot of people are hunting around for<br />this info, you could help them greatly.<br /><br />Also visit my page === <a href="https://op-best.com" rel="nofollow">안마</a><br><br />(freaky)<br /><br />opbesthttps://www.blogger.com/profile/01799304286846889739noreply@blogger.comtag:blogger.com,1999:blog-3636872937372639901.post-36308853328861504402021-07-17T05:30:27.855+09:002021-07-17T05:30:27.855+09:00Especially superb!!! Exactly when I search for thi...<br />Especially superb!!! Exactly when I search for this<br />I found this webpage at the top of every single online diary in web crawler.<br /><br />Review my page ::: <a href="https://bamgosoo.com" rel="nofollow">오피</a> (jk)<br /><br />bamgosoocomhttps://www.blogger.com/profile/16618862331641458532noreply@blogger.comtag:blogger.com,1999:blog-3636872937372639901.post-83629690480701982102017-10-26T17:47:48.901+09:002017-10-26T17:47:48.901+09:00読者への課題はすべて著者への課題にしてくれ読者への課題はすべて著者への課題にしてくれAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3636872937372639901.post-90880274863958096802017-10-25T02:19:54.009+09:002017-10-25T02:19:54.009+09:00mapをindex付きで取り出したい事なんて殆どないから元のやつで十分幸せになれる気がする。mapをindex付きで取り出したい事なんて殆どないから元のやつで十分幸せになれる気がする。Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3636872937372639901.post-63521352426737528032017-10-24T18:11:48.684+09:002017-10-24T18:11:48.684+09:00しまった、<>がタグ扱いで消えた……。std::vector<std::pair&...しまった、<>がタグ扱いで消えた……。std::vector<std::pair<T, U>>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3636872937372639901.post-63120908093007122542017-10-24T18:09:59.305+09:002017-10-24T18:09:59.305+09:00この実装では、std::vector>に対して[index, element]で受けることがで...この実装では、std::vector>に対して[index, element]で受けることができず、必ず[index, first, second]を使わねばならない、という制約があるので、必ずしも適切ではないように思えます。<br />もちろん、この条件をstd::map(や、std::unordered_mapなど)のみに限定することは可能でですが、そうすると今度はstd::vector>に対する[index, first, second]が使えなくなってしまう。<br />ですので、if constexprで分岐するよりも、[index, element]版と展開版を、別関数(あるいは別オーバーロード)として用意するのがより良いように思えます。<br />あるいは、やはりネストされた構造化束縛を使うか。Anonymousnoreply@blogger.com