另一种阻止 ADL 的巧妙手法
在 TBOMC++ (The Book of Modern C++) 第一章中,介绍过利用 () 阻止 ADL 的技巧,本篇介绍另一种更加巧妙且有用的阻止 ADL 的方法。 介绍这种方法之前,先讲解一… Continue Reading 另一种阻止 ADL 的巧妙手法
Dive deep into the C++ core, and discover more!
在 TBOMC++ (The Book of Modern C++) 第一章中,介绍过利用 () 阻止 ADL 的技巧,本篇介绍另一种更加巧妙且有用的阻止 ADL 的方法。 介绍这种方法之前,先讲解一… Continue Reading 另一种阻止 ADL 的巧妙手法
Motivation of std::function_ref std::function_ref 是轻量级的 std::function,能够引用任意形式的可调用对象。在此之前,C++ 便已存在许多… Continue Reading C++26 function_ref and nontype_t