Back to Basics: Templates Part 2
Basics: Templates – Part 2 Bob Steagall CppCon 2021CppCon 2021 – Back to Basics: Templates – Part 2 Copyright © 2021 Bob Steagall Recap: Templates • C++ supports generic programming with templates • A kinds of templates • Function templates • Class templates • Member function templates • Alias template • Variable templates • Lambda templates 2CppCon 2021 – Back to Basics: Templates – Part 2 Copyright inclusion preprocessing directives (#ifdef) • And all macros expanded 3CppCon 2021 – Back to Basics: Templates – Part 2 Copyright © 2021 Bob Steagall Recap: Declarations and Definitions • A name is an identifier0 码力 | 80 页 | 490.15 KB | 5 月前3Back to Basics: Templates - Part 1
Back to Basics: Templates – Part 1 Bob Steagall CppCon 2021CppCon 2021 – Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Overview • Rationale • Template fundamentals • Template categories categories in detail 2CppCon 2021 – Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Goals and References • Goals • Cover major features • Explain some important terminology and concepts concepts • Point to next steps • Recommended references • C++ Templates The Complete Guide, Second Edition David Vandevoorde, Nicolai M. Josuttis, Douglas Gregor – Addison-Wesley 2018 • Effective Modern0 码力 | 68 页 | 436.75 KB | 5 月前3Back to Basics: C++ Templates - Part 1
Info @Andreas__Fertig B2B: C++ Templates Part 1 fertig adjective /ˈfɛrtɪç/ finished ready complete completed Andreas Fertig v1.0 B2B: C++ Templates 2 B2B: C++ Templates Part 1 © 2020 Andreas Fertig flexi bility. Andreas Fertig v1.0 B2B: C++ Templates 3 Templates ■ Templates are a kind of pattern for the compiler. ■ We can instantiate templates with different types or values. ■ Each instantiation ment. ■ Templates reduce a lot of writers’ work. We do not have to implement functions multiple times just because it’s a slightly different type. ■ There are different types of templates: ■ Functiontemplates0 码力 | 17 页 | 817.47 KB | 5 月前3Back to Basics: C++ Templates - Part 2
Fertig https://AndreasFertig.Info post@AndreasFertig.Info @Andreas__Fertig B2B: C++ Templates Part 2 Variadic templates: Parameter pack ■ Syntax: A typename|class... Ts generates a type template pa rameter B2B: C++ Templates 2 B2B: C++ Templates Part 2 © 2020 Andreas Fertig https://AndreasFertig.Info post@AndreasFertig.Info 1Variadic templates ■ With C++11, there are variadic templates: ■ Variadic Variadic templates are templates that take any number of parameters. ■ Already known by variadic macros or variadic functions. 1 A Helper functions to convert everything into a std::string 2 auto Normalize(const0 码力 | 12 页 | 787.22 KB | 5 月前3Jinja2 Documentation Release 2.10
Python API for Jinja2 templates. The most basic way to create a template and render it is through Template. This how- ever is not the recommended way to work with it if your templates are not loaded from implementing the template interface to the applica- tion and not those who are creating Jinja2 templates. 2.1 Basics Jinja2 uses a central object called the template Environment. Instances of this class the configuration and global objects, and are used to load templates from the file system or other locations. Even if you are creating templates from strings by using the constructor of Template class, an0 码力 | 148 页 | 475.08 KB | 1 年前3Zabbix 2.2 Manual
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 6 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . monitoring, once in the database • apply templates to monitored devices Use of templates • grouping checks in templates • templates can inherit other templates Network discovery • automatic discovery web scenarios in the template. In the frontend, web scenarios are now created in Configuration → Templates and Configuration → Hosts respectively, similarly to the way items, triggers etc. are created.0 码力 | 918 页 | 11.28 MB | 1 年前3Zabbix 5.0 Manual
. . . . . . . . . . . . 458 7 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503 8 Templates out of the box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634 2 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . monitoring, once in the database • apply templates to monitored devices Use of templates • grouping checks in templates • templates can inherit other templates Network discovery • automatic discovery0 码力 | 1561 页 | 28.27 MB | 1 年前3Zabbix 2.0 Manual
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 6 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . monitoring, once in the database • apply templates to monitored devices Use of templates • grouping checks in templates • templates can inherit other templates Network discovery • automatic discovery service dependencies can be selected now 5.2.19 Templated host screens Screens can be defined in templates. They are available for all hosts that are linked to the template. They can be accessed from the0 码力 | 791 页 | 9.66 MB | 1 年前3Zabbix 2.4 Manual
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 6 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . monitoring, once in the database • apply templates to monitored devices Use of templates • grouping checks in templates • templates can inherit other templates Network discovery • automatic discovery everywhere except graphs. 5.10.2 Global search by technical name In recent Zabbix versions, hosts and templates could only be searched for by their visible name. Now they can be searched by technical name as0 码力 | 910 页 | 10.81 MB | 1 年前3Zabbix 6.0 Manual
. . . . . . . . . . . . 417 8 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 9 Templates out of the box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569 2 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . monitoring, once in the database • apply templates to monitored devices Use of templates • grouping checks in templates • templates can inherit other templates Network discovery • automatic discovery0 码力 | 1681 页 | 23.19 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100