Overload Resolution
resolution in clause 16 (32 pages) ■ name lookup, argument dependent lookup (44 pages) ■ fundamental types (33 pages) ■ value categories (31 pages) ■ declarations (45 pages) ■ standard conversions conversions (15 pages) ■ user defined conversions (25 pages) ■ template argument deduction (80 pages) ■ SFINAE (35 pages) ■ special member functions (30 pages) ○ C++20 defines overload resolution resolution in clause 12 (35 pages) 16Overload Resolution ● Before Overload Resolution Starts ○ compiler must first run a procedure called name lookup ○ name lookup is the process of finding every function0 码力 | 55 页 | 209.57 KB | 5 月前3Designing Fast and Efficient List-like Data Structures
element); ElementContainer Pop(); private: Pagedata_; }; 1 2 3 4 5 6 7 8 9Memory Pages template class Page { public: T& Front(); T& Back(); T& At(size_t public: Queue& Push(const T& element); ElementContainer Pop(); private: PageList pages_; PageList* first_; PageList* last_; }; 1 2 3 4 5 6 7 8 9 10 11Real-World use-case of Queue 0 码力 | 29 页 | 852.61 KB | 5 月前3《深入浅出MFC》2/e
DoPreparePrinting(pInfo); // default preparation pInfo->m_nNumPreviewPages = 2; // Preview 2 pages at a time // Set this value after calling DoPreparePrinting to override // value read CScribbleView::OnPreparePrinting(CPrintInfo* pInfo) { pInfo->SetMaxPage(2); // the document is two pages long: // the first page is the title page // the second is the drawing 第㆕篇 深入 MFC 程式設計 698 DoPreparePrinting(pInfo); // default preparation pInfo->m_nNumPreviewPages = 2; // Preview 2 pages at a time // Set this value after calling DoPreparePrinting to override // value read0 码力 | 1009 页 | 11.08 MB | 1 年前3Implementing C++ Modules: Lessons Learned, Lessons Abandoned
1979” – [DMR] ▪ “as if there was exactly one section of source text” ▪ C++ standards – Several pages of encrypted text about token-for-token comparison, name lookup, overload resolution, template0 码力 | 53 页 | 1.33 MB | 5 月前3Irksome C++
individually and jointly, to increase its awareness of the importance of vocabulary. • The next several pages will show a number of examples of what I mean by nomenclature that I consider “subopbmal” (and thus0 码力 | 15 页 | 3.03 MB | 5 月前3C++高性能并行编程与优化 - 课件 - 10 从稀疏数据结构到量化数据类型
缺点:尺寸受限,操作系统挂钩,依赖 x86 硬件机 制。 • 顺便一提, GPU 也可以搞 SPGrid ,不过 GPU 的 页大小是 2MB ,王鑫磊最近研究过这个,因为太繁 琐而放弃了。 http://pages.cs.wisc.edu/~sifakis/papers/SPGrid.pdf 今天的回家作业 • 用稀疏数据结构改良康威生命游戏 (conway’s game of life) 的代码。 •0 码力 | 102 页 | 9.50 MB | 1 年前3Back to Basics: Concurrency
common concurrency patterns (reader/writer, producer/consumer, etc.) ● The ‘comet book’ https://pages.cs.wisc.edu/~remzi/OSTEP/ ○ (Free/donation based) Operating Systems book Insight into how foundational0 码力 | 141 页 | 6.02 MB | 5 月前3Just-in-Time Compilation - J F Bastien - CppCon 2020
program is loaded into memory and the linker/loader are done doing their work. On modern systems: pages mapped X at some point in time are modified.AoT AoT Ahead-of-Time compilation Is AoT the opposite0 码力 | 111 页 | 3.98 MB | 5 月前3Conan 2.0 Documentation
practice to download the sources from a canonical source, like Github releases, or project download web pages. Keeping a record of the origin of these files is useful for traceability purposes, however, it is0 码力 | 652 页 | 4.00 MB | 1 年前3Conan 2.1 Documentation
practice to download the sources from a canonical source, like Github releases, or project download web pages. Keeping a record of the origin of these files is useful for traceability purposes, however, it is0 码力 | 694 页 | 4.13 MB | 1 年前3
共 48 条
- 1
- 2
- 3
- 4
- 5