MSVCRT std::for each 新しいページはコチラ
提供: yonewiki
7行: | 7行: | ||
例 | 例 | ||
− | <span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; "><span style="color:blue;">std::for_each</span>(argvUTF16, argvUTF16 + argcUTF16, [&argvUTF8Q](<span style="color:deeppink;">const auto&</span> arg) { | + | <span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; "><span style="color:blue;">std::for_each</span>(argvUTF16, argvUTF16 + argcUTF16, </span><br /> |
− | + | <span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; ">[&argvUTF8Q](<span style="color:deeppink;">const auto&</span> arg) { </span><br /> | |
− | + | <span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; ">argvUTF8Q<span style="color:blue;">.emplace_back</span>(<span style="color:blue;">QString::fromUtf16</span>(<span style="color:deeppink;">reinterpret_cast<const char16_t*></span>(arg), -1)<span style="color:blue;">.toUtf8</span>());</span><br /> | |
− | + | <span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; ">});</span> | |