LITERALS SAFELY for Types that Behave as though Built-in - Pablo Halpern - CppCon 2021
re.com CppCon 2021 This work by Pablo Halpern is licensed under a Creative Commons Attribution 4.0 International License.literal [ lit-er-uhl ] adjective 1. in accordance with, involving, or being Halpern, 2021 (CC BY 4.0) 2literal [ lit-er-uhl ] noun 1. a typographical error, especially involving a single letter. Source: dictionary.com 10/26/21 Pablo Halpern, 2021 (CC BY 4.0) 3 ✘literal (in C++) character, string, Boolean, pointer, or user-defined type. 10/26/21 Pablo Halpern, 2021 (CC BY 4.0) 4Examples of C++ literals ■ Integer: 123, 456U, 0xfedcba10000LL, 0b1001UL ■ Floating point: 12.30 码力 | 66 页 | 1.47 MB | 5 月前3Noexcept: Enabling Testing of Contract Checks
by Pablo Halpern & Timur Doumler is licensed under a Creative Commons Attribution 4.0 International License (CC by 4.0) 2023.Welcome What can the Screen Actors Guild and the Writers Guild of America Contract checks should themselves be tested. 4-Oct-23 Pablo Halpern and Timur Doumler, 2023 (CC BY 4.0) 2 Today’s talkGoals −What We Hope to Teach You • How the noexcept specifier and noexcept operator Pablo Halpern and Timur Doumler, 2023 (CC BY 4.0) 3About the presenters Pablo Halpern Timur Doumler 4-Oct-23 Pablo Halpern and Timur Doumler, 2023 (CC BY 4.0) 4 • Lives in Boston, MA, USA • Member of0 码力 | 90 页 | 1.38 MB | 5 月前3《深入浅出MFC》2/e
MFC 是通往MFC Programming 的皇家大道』。 ii 香港. lnlo@hkstart.com 我是你的一位读者,住在香港。我刚买了你翻译的Inside Visual C++ 4.0(中文版)。在此 之前我买了你的另一本书深入浅出MFC。在读了深入浅出MFC 前面50~70 页之后,我 想我错买了一本很艰深的书籍。我需要的是一本教我如何利用MFC 来产生一个程序的书, 而不是一本教我如何设计一套MFC (深入浅出MFC 是我所读过之MFC 书籍中最精采的一本。您大概不知道,我们人手一本 深入浅出MFC 吧。深入Visual C++ 4.0 的情况也差不了多少! iv 台北市yrleu@netrd.iii.org.tw 买了您的译作深入Visual C++ 4.0 后,才认识您这在Windows Programming 著作方面的 头号人物。十分佩服您的文笔,译得通顺流畅,可谓信达雅。之后偶然翻阅您另外的作品 中译本)不错, 适合初学者对MFC 做初步的认识与应用。深入浅出MFC 这一本原理讲的较多。 Sagitta.bbs@firebird.cs.ccu.edu.tw:Inside Visual C++ 4.0 不是初学者用的书,因为它未从 最基本观念讲起。深入浅出MFC 前半本都在描述(或说仿真) MFC 的内部技术,甚至挖 出MFC 部份原始程序代码来说明,透过这本书来学MFC 会学得很扎实,不过自己要先0 码力 | 1009 页 | 11.08 MB | 1 年前3Linear Algebra with The Eigen Cpp Library
MatrixXd mtx { {1.0, 2.0, 3.0}, {4.0, 5.0, 6.0}, {7.0, 8.0, 9.0}, {10.0, 11.0, 12.0} }; MatrixXd mtx{4, 3}; // 4 rows, 3 columns mtx << 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11 {1.0, 2.0, 3.0}, {1.5, 2.5, 3.5}, {4.0, 5.0, 6.0}, {4.5, 5.5, 6.5}, {7.0, 8.0, 9.0} }; MatrixXd B { {1.0, 2.0, 3.0, 4.0, 5.0}, {1.5, 2.5, 3.5, 4.5, 5.5}, {5.0 Multiplication Daniel Hanson CppCon 2024 15MatrixXd A { {1.0, 2.0, 3.0}, {1.5, 2.5, 3.5}, {4.0, 5.0, 6.0}, {4.5, 5.5, 6.5}, {7.0, 8.0, 9.0} }; MatrixXd mtx_sum = A + C; cout << mtx_sum <<0 码力 | 35 页 | 1.10 MB | 5 月前3What's Eating my RAM?
be done with chunks in bins. This content is adapted from Wikipedia and is licensed under CC BY-SA 4.0.How to estimate Fragmentation? Internal: Internal Fragmentation = 1 - AccessedBytes / TotalAllocatedBytes CppCon 2019: Emery Berger “Mesh: Automatically Compacting” Source: Wikipedia licensed under CC BY-SA 4.0Operating System malloc Defragmentation .cpp Buddy system MESH CppCon 2019: Emery Berger “Mesh: Automatically Compacting” Malloc Tunable Parameters jemalloc Source: Wikipedia licensed under CC BY-SA 4.0 Source: scalable-memory-allocation-using-jemallocOperating System malloc Defragmentation .cpp0 码力 | 88 页 | 3.49 MB | 5 月前3A Long Journey of Changing std::sort Implementation at Scale
01, 1.0}? Yes 62.1Can we sort {3.0, NaN, 4.0}? 63Can we sort {3.0, NaN, 4.0}? No 63.1Can we sort {3.0, NaN, 4.0}? No NaN thinks it is equal to 3.0 and 4.0 63.2Can we sort {NaN, 3.0, NaN}? 64Can0 码力 | 182 页 | 7.65 MB | 5 月前3Back to Basics: C++ Templates - Part 2
int a = 2; 16 int b = 1; 17 18 printf(”%d\n”, equal(a, b)); 19 20 double d = 3.0; 21 double f = 4.0; 22 23 printf(”%d\n”, equal(d, f)); 24 } Andreas Fertig v1.0 B2B: C++ Templates 12 B2B: C++ Templates int a = 2; 18 int b = 1; 19 20 printf(”%d\n”, equal(a, b)); 21 22 double d = 3.0; 23 double f = 4.0; 24 25 printf(”%d\n”, equal(d, f)); 26 } Andreas Fertig v1.0 B2B: C++ Templates 13 Tag dispatch int a = 2; 20 int b = 1; 21 22 printf(”%d\n”, equal(a, b)); 23 24 double d = 3.0; 25 double f = 4.0; 26 27 printf(”%d\n”, equal(d, f)); 28 } Andreas Fertig v1.0 B2B: C++ Templates 17 Template template0 码力 | 12 页 | 787.22 KB | 5 月前3Au Units
And1mu - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/wiki/File:Plane_electromagnetic_wave.svg 35Explicit systems of quantities By And1mu - Own work, CC BY-SA 4.0, https://commons.wikimedia. c_wave.svg SI Units: E = cB 35.1Explicit systems of quantities By And1mu - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/wiki/File:Plane_electromagnetic_wave.svg SI Units: E = cB Gaussian0 码力 | 191 页 | 22.37 MB | 5 月前3Concurrency
Back to Basics: Concurrency Alxndrul, CC BY-SA 4.0, via Wikimedia CommonsCppCon 2023 3 David Olsen - Back to Basics: Concurrency Alxndrul, CC BY-SA 4.0, via Wikimedia CommonsCppCon 2023 4 David Olsen DefinitionCppCon 2023 18 David Olsen - Back to Basics: Concurrency Marc-Lautenbacher, CC BY-SA 4.0, via Wikimedia CommonsCppCon 2023 19 David Olsen - Back to Basics: Concurrency CONCURRENCY MADE0 码力 | 160 页 | 2.91 MB | 5 月前3cppcon 2021 safety guidelines for C parallel and concurrency
© The Khronos® Group Inc. 2020 - Page 5 This work is licensed under a Creative Commons Attribution 4.0 International License Acknowledgement and Disclaimer Numerous people internal and external to the Aimed for embedded domains • C++11/14/17/20 but not safe • High Integrity C++ Coding Standard Version 4.0, Programming Research Ltd, 2013 • Some parallelism • Software Engineering Institute CERT C/C++ Coding0 码力 | 52 页 | 3.14 MB | 5 月前3
共 98 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
相关搜索词
LITERALSSAFELYforTypesthatBehaveasthoughBuiltinPabloHalpernCppCon2021NoexceptEnablingTestingofContractChecks深入深入浅出MFCLinearAlgebrawithTheEigenCppLibraryWhatEatingmyRAMLongJourneyChangingstdsortImplementationatScaleBacktoBasicsC++TemplatesPartAuUnitsConcurrencycppconsafetyguidelinesparallelandconcurrency