Back to Basics: Templates Part 2Basics: 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 | 6 月前3
Back to Basics: Templates - Part 1Back 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 | 6 月前3
Back to Basics: C++ Templates - Part 1Info @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 | 6 月前3
Back to Basics: C++ Templates - Part 2Fertig 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 | 6 月前3
Django CMS 3.11.10 Documentationother, so it’s recommended to work through them in the order presented here. Installing django CMS Templates & Placeholders Integrating applications Plugins Apphooks Extending the toolbar Extending the navigation check myproject/ LICENSE README.md db.sqlite3 myproject/ static/ templates/ base.html __init__.py asgi.py settings.py urls.py INSTALLED_APPS, and: in the TEMPLATES['OPTIONS']['context_processors']: CMS_CONFIRM_VERSION4 = True python manage.py migrate "sekizai" "sekizai.context_processors.sekizai" TEMPLATES = [ { ...0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django CMS 3.9.x Documentationit’s recommended to work through them in the order presented here. 1. Installing django CMS 2. Templates & Placeholders 3. Integrating applications 4. Plugins 5. Apphooks 6. Extending the toolbar 7. Extending 2. Templates & Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. 2.1. Templates You can use HTML templates to multiple templates, with 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 in0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationit’s recommended to work through them in the order presented here. 1. Installing django CMS 2. Templates & Placeholders 3. Integrating applications 4. Plugins 5. Apphooks 6. Extending the toolbar 7. Extending 2. Templates & Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. 2.1. Templates You can use HTML templates to multiple templates, with 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 mysite/templates0 码力 | 413 页 | 1.67 MB | 6 月前3
Django CMS 4.1.x Documentationother, so it’s recommended to work through them in the order presented here. Installing django CMS Templates & Placeholders Integrating applications Plugins Apphooks Extending the toolbar Extending the navigation check myproject/ LICENSE README.md db.sqlite3 myproject/ static/ templates/ base.html __init__.py asgi.py settings.py urls.py by the CMS for static files management. You need to have: listed in INSTALLED_APPS, and: in the TEMPLATES['OPTIONS']['context_processors']: Middleware in your MIDDLEWARE [https://docs.djangoproject.com/en/40 码力 | 518 页 | 1.66 MB | 6 月前3
Django CMS 3.0.x Documentation5.1.2 Templates & Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates You can use HTML templates to customise multiple templates, with 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 mysite/templates mysite/templates. If you didn’t change the automatically-created home page’s template, it’s feature.html. Placeholders Placeholders are an easy way to define sections in an HTML template that will be filled0 码力 | 180 页 | 1.56 MB | 6 月前3
Django CMS 4.0.x Documentationusers. Templates & Placeholders In this tutorial we’ll introduce Placeholders, and we’re also going to show how you can make your own HTML templates CMS-ready. Templates You can use HTML templates to customise multiple templates, with 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 mysite/templates 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 ('fullwidth0 码力 | 296 页 | 1.79 MB | 6 月前3
共 150 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15













