小红花·文摘
  • 首页
  • AI Tokens🪙
  • 排行榜🏆
  • 直播
  • FAQ

在cppnow 2023的演讲中,daisy展示了简化模板元算法的技巧。她以排序为例,通过将type_list中的每个Type映射到它们的index,然后对index数组进行排序,最终重新安放type_list中的元素。她展示了一个巧妙的排序算法,使用variant数组和std::visit访问数组中的元素。通过使用std::type_identity作为仿函数参数,解决了一些类型无法作为参数的问题。最后,她展示了如何根据类型的大小对type_list中的类型进行排序。

adapting c++20 ranges algorithms for most metaprogramming

贾跃华 贾跃华 · 2024-01-22T00:00:03Z
C++20 Ranges 文档

C++20引入了Ranges,提供了可组合数据集合转换的新方法。Microsoft的Tyler Whitney记录了标准库中可用的Range适配器,包括功能、构造方法、参数、成员、迭代器类型、元素类型、大小、是否可迭代等特性。用户可在Microsoft Learn上查看文档并提供反馈。

C++20 Ranges 文档

C++ Team Blog C++ Team Blog · 2023-04-26T17:52:01Z

As you may have heard by now, Ranges got merged and will be part of C++20. This is huge news and represents probably the biggest shift the Standard Library has seen since it was first standardized...

Standard Ranges

Eric Niebler Eric Niebler · 2018-12-06T01:58:12Z

Disclaimer: these are my early thoughts. None of this is battle ready. You’ve been warned. Hello, Coroutines! At the recent C++ Committee meeting in Toronto, the Coroutines TS was forwarded to ISO...

Ranges, Coroutines, and React: Early Musings on the Future of Async in C++

Eric Niebler Eric Niebler · 2017-08-17T21:41:08Z
  • <<
  • <
  • 1 (current)
  • >
  • >>
👤 个人中心
在公众号发送验证码完成验证
登录验证
在本设备完成一次验证即可继续使用

完成下面两步后,将自动完成登录并继续当前操作。

1 关注公众号
小红花技术领袖公众号二维码
小红花技术领袖
如果当前 App 无法识别二维码,请在微信搜索并关注该公众号
2 发送验证码
在公众号对话中发送下面 4 位验证码
小红花技术领袖俱乐部
小红花·文摘:汇聚分发优质内容
小红花技术领袖俱乐部
Copyright © 2021-
粤ICP备2022094092号-1
公众号 小红花技术领袖俱乐部公众号二维码
视频号 小红花技术领袖俱乐部视频号二维码