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 />
 
+
&nbsp;&nbsp;&nbsp;<span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; ">[&argvUTF8Q](<span style="color:deeppink;">const auto&</span> arg) { </span><br />
 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>());
+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>
+
<span style = "background:linear-gradient(transparent 75%, #cab8d9 75%); font-weight:bold; ">});</span>
  
  

2021年2月10日 (水) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス