Template Metaprogramming: Type TraitsTemplate Metaprogramming: Type Traits Part 1 CppCon 2020 1 Jody Hagins jhagins@maystreet.com coachhagins@gmail.comTemplate Metaprogramming: Type Traits CppCon 2020 2 IntroductionIntended Audience oriented: shallow depth, slow current • Not necessarily beginner to C++, but beginner to traditional template metaprogramming techniques 3Intended Audience • Beginner/Intermediate • Gentle entry: swimming oriented: shallow depth, slow current • Not necessarily beginner to C++, but beginner to traditional template metaprogramming techniques • Type traits part of standard library for ~10 years 3Intended Audience0 码力 | 403 页 | 5.30 MB | 6 月前3
Template-Less Meta-Programming1 / 58Template Metaprogramming (TMP) Template Metaprogramming (TMP) templateusing meta_fun = this_talk ; 2 / 58❓static_assert(Template::Metaprogramming::is_hard); // ✔ 3 / 58❓s 58❓static_assert(Template::Metaprogramming::is_hard); // ✔ ❓static_assert(Template::Metaprogramming::is_powerful); // ✔ 3 / 58❓static_assert(Template::Metaprogramming::is_hard); // ✔ ❓static_assert( ❓static_assert(Template::Metaprogramming::is_powerful); // ✔ ❓static_assert(( Template::Metaprogramming::is_easy and Template::Metaprogramming::is_powerful and Template::Metaprogramming::has_nice_error_messages 0 码力 | 130 页 | 5.79 MB | 6 月前3
Many Ways to Kill an Orc (or a Hero)abstract… • « Our game programmers and game engines involve fights between heroes and their foes […] » 3From the abstract… • « Our game programmers and game engines involve fights between heroes and their and monsters to hit at each other […] » 4From the abstract… • « Our game programmers and game engines involve fights between heroes and their foes. There are «classical», traditional ways to express other. This is what this talk will explore » 5From the abstract… • « Our game programmers and game engines involve fights between heroes and their foes. There are «classical», traditional ways to express0 码力 | 202 页 | 1.26 MB | 6 月前3
Django CMS 3.9.x Documentationwith different layouts or built-in components, and choose them for each page as required. A page’s template can be switched for another at any time. You’ll find the site’s templates in tutorial-project/m tutorial-project/mysite/mysite/templates. By default, pages in your site will use the fullwidth.html template, the first one listed in the project’s settings.py CMS_TEMPLATES tuple: CMS_TEMPLATES = ( ## Customize this in an HTML template that will be filled with content from the database when the page is rendered. This content is edited using django CMS’s frontend editing mechanism, using Django template tags. fullwidth0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationrequired. A page’s template can be switched for another at any time. You’ll find the site’s templates in mysite/templates. By default, pages in your site will use the fullwidth.html template, the first one in an HTML template that will be filled with content from the database when the page is rendered. This content is edited using django CMS’s frontend editing mechanism, using Django template tags. fullwidth see {% load cms_tags %} in that file - cms_tags is the required template tag library. If you’re not already familiar with Django template tags, you can find out more in the Django documentation [https://docs0 码力 | 413 页 | 1.67 MB | 6 月前3
TiDB v8.1 Documentationneeded to meet different disaster tolerance levels. • Real-time HTAP TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft in the table as the national character set. 2.4.2.12 Storage engines TiDB allows for tables to be created with alternative storage engines. Despite this, the metadata as described by TiDB is for the InnoDB restart 6. Create and start the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: 97 # # Global variables are applied to all deployments and used0 码力 | 6479 页 | 108.61 MB | 10 月前3
TiDB v8.2 Documentationneeded to meet different disaster tolerance levels. • Real-time HTAP TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft in the table as the national character set. 2.4.2.12 Storage engines TiDB allows for tables to be created with alternative storage engines. Despite this, the metadata as described by TiDB is for the InnoDB restart 6. Create and start the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: 97 # # Global variables are applied to all deployments and used0 码力 | 6549 页 | 108.77 MB | 10 月前3
TiDB v8.3 Documentationneeded to meet different disaster tolerance levels. • Real-time HTAP TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft in the table as the national character set. 2.4.2.12 Storage engines TiDB allows for tables to be created with alternative storage engines. Despite this, the metadata as described by TiDB is for the InnoDB restart 6. Create and start the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: 100 # # Global variables are applied to all deployments and used0 码力 | 6606 页 | 109.48 MB | 10 月前3
TiDB v8.5 Documentationneeded to meet different disaster tolerance levels. • Real-time HTAP TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft in the table as the national character set. 2.4.2.12 Storage engines TiDB allows for tables to be created with alternative storage engines. Despite this, the metadata as described by TiDB is for the InnoDB restart 6. Create and start the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: 127 # # Global variables are applied to all deployments and used0 码力 | 6730 页 | 111.36 MB | 10 月前3
TiDB v8.4 Documentationneeded to meet different disaster tolerance levels. • Real-time HTAP TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft in the table as the national character set. 2.4.2.12 Storage engines TiDB allows for tables to be created with alternative storage engines. Despite this, the metadata as described by TiDB is for the InnoDB restart 6. Create and start the cluster: Edit the configuration file according to the following template, and name it as topo. �→ yaml: # # Global variables are applied to all deployments and used as0 码力 | 6705 页 | 110.86 MB | 10 月前3
共 351 条
- 1
- 2
- 3
- 4
- 5
- 6
- 36













