C++26 Finally Makes std::projected ADL-Proof
std::projected 是 C++20 引入的一个模板工具,用于获取应用投影函数后迭代器所指向的值类型。例如: struct Person { std::string name; int age… Continue Reading C++26 Finally Makes std::projected ADL-Proof
Dive deep into the C++ core, and discover more!
std::projected 是 C++20 引入的一个模板工具,用于获取应用投影函数后迭代器所指向的值类型。例如: struct Person { std::string name; int age… Continue Reading C++26 Finally Makes std::projected ADL-Proof
Motivation of std::function_ref std::function_ref 是轻量级的 std::function,能够引用任意形式的可调用对象。在此之前,C++ 便已存在许多… Continue Reading C++26 function_ref and nontype_t
元宵三五,夜雪初霁,蕙风透寒。 乘暇再更一个 C++26 的小特性,动机简单,看一下小例子: using Point3D = std::tuple<float, float, float>… Continue Reading C++26’s Placeholder variables with no name
目前进入 C++26 的特性当中,Pack Indexing 是较为有用的一个,值得谈谈。 发展背景 早期,C++ 元编程是摸着石头过河,许多特性只是当时情况下的权宜之计,并非最理想的解决方式。纵然非… Continue Reading C++26 Pack Indexing
岁月如驰,距前篇反射文章,已近两载。 C++23 工作殆尽,C++26 紧随其后,Relection 也有了一些新进展,本篇来看这些更新的些许内容。 相关作者 知识似树,发枝散叶,往往只需两三人而已。… Continue Reading Reflection for C++26