Back to Basics: Templates - Part 1
general_row_vectorrv;CppCon 2021 – Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Variable Templates (C++14) • Recipes for making variables or static data members 20 template function template functions member function template member functions alias template type aliases variable template variables lambda template lambda functionsCppCon 2021 – Back to Basics: Templates – Part usually think of as linking • The output is an executable image suitable for the intended execution environment 27CppCon 2021 – Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Phases of Translation 0 码力 | 68 页 | 436.75 KB | 5 月前3Symbolic Calculus for High-Performance Computing: From Scratch Using C++23
Introduction The lambda trick Comparison Binding Constraints Architecture Substitution Construction Conclusion Symbolic Calculus for High-Performance Computing from Scratch using C++23 Vincent Reverdy Constraints Architecture Substitution Construction Conclusion Table of contents 1 Introduction 2 The lambda trick 3 Comparison 4 Binding 5 Constraints 6 Architecture 7 Substitution 8 Construction 9 Constraints Architecture Substitution Construction Conclusion Introduction 1 Introduction 2 The lambda trick 3 Comparison 4 Binding 5 Constraints 6 Architecture 7 Substitution 8 Construction 9 Conclusion0 码力 | 70 页 | 1.80 MB | 5 月前3Back to Basics: Generic Programming
declaration; declaration can be • class / struct • function • type alias • variable • concept template-parameter is class | typename identifier [= default-value] Template definition ype >::type; https://godbolt.org/z/EE9zqYEEe22 David Olsen – Generic Programming CppCon 2024 Variable Template Definition template constexpr bool is_big_and_trivial = sizeof(T) > 16 && Olsen – Generic Programming CppCon 2024 Substitution & Instantiation43 David Olsen – Generic Programming CppCon 2024 Substitution vs. Instantiation Substitution Substitute template arguments for template 0 码力 | 175 页 | 1.16 MB | 5 月前3Powered by AI: A Cambrian Explosion for C++ Software Development Tools
fixes can produce stack trace "on steroids" evolve exploit niche include relevant source, variable values, dynamic types, deref'd pointers evolvedebugger that performs root cause analysis & proposes produce stack trace "on steroids" evolve ensure fitness exploit niche include relevant source, variable values, dynamic types, deref'd pointers evolvedebugger that performs root cause analysis & proposes prevents crash / exception... (TBD) evolve ensure fitness exploit niche include relevant source, variable values, dynamic types, deref'd pointers evolvevoid f(void*) {} void f(char*) {} template0 码力 | 128 页 | 23.40 MB | 5 月前3julia 1.10.10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 Variables 7 3.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 Assignment expressions . . . . . . . . . . . . . . . . . . . . . 363 28 Handling Operating System Variation 366 29 Environment Variables 367 29.1 File locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 34.9 Avoid changing the type of a variable . . . . . . . . . . . . . . . . . . . . . . . . . 427 34.10 Separate kernel functions (aka, function0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 Variables 7 3.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 Assignment expressions . . . . . . . . . . . . . . . . . . . . . 363 28 Handling Operating System Variation 366 29 Environment Variables 367 29.1 File locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 34.9 Avoid changing the type of a variable . . . . . . . . . . . . . . . . . . . . . . . . . 427 34.10 Separate kernel functions (aka, function0 码力 | 1692 页 | 6.34 MB | 3 月前3julia 1.13.0 DEV
installation methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Variables 10 4.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 Assignment expressions . . . . . . . . . . . . . . . 388 29 Handling Operating System Variation 391CONTENTS vi 30 Environment Variables 392 30.1 File locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testing log events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1659 82.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1659 82.5 Examples0 码力 | 2058 页 | 7.45 MB | 3 月前3julia 1.12.0 beta1
installation methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Variables 10 4.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 Assignment expressions . . . . . . . . . . . . . . . 388 29 Handling Operating System Variation 391CONTENTS vi 30 Environment Variables 392 30.1 File locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testing log events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1647 81.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1647 81.5 Examples0 码力 | 2047 页 | 7.41 MB | 3 月前3Julia 1.12.0 RC1
installation methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Variables 10 4.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 Assignment expressions . . . . . . . . . . . . . . . 389 29 Handling Operating System Variation 392CONTENTS vi 30 Environment Variables 393 30.1 File locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testing log events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1657 82.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1657 82.5 Examples0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
installation methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Variables 10 4.1 Allowed Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.2 Assignment expressions . . . . . . . . . . . . . . . 388 29 Handling Operating System Variation 391CONTENTS vi 30 Environment Variables 392 30.1 File locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testing log events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1656 82.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1656 82.5 Examples0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 179 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18