Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Understanding qAsConst / std::as_const

  • KDAB
  • 2022-05-19
  • 1307
Understanding qAsConst / std::as_const
qAsConststd::as_constreference countingqt containersrvaluelvalue
  • ok logo

Скачать Understanding qAsConst / std::as_const бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Understanding qAsConst / std::as_const или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Understanding qAsConst / std::as_const бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Understanding qAsConst / std::as_const

Do you remember to add qAsConst around your Qt containers when you iterate them? If not, there is a real risk that you are paying a price tag for them detaching just as you are about to start.

In  this episode, Jesper has a chat with his coworker Peppe to better understand what qAsConst does, why and when it is needed, and how to work around issues with iterating containers that are the result of calling a function.

0:00 Introduction
0:57 implicit shared
3:16 the container might be copied
3:40 what does the for loop expands to?
5:04 What is the cure?
5:35 Solution: create a const copy of the contrainer.
7:00 Solution: Make the method const
7:40 Colution: use qAsConst
9:05 qAsConst and rvalues
10:30 But but but - nobody else has access...
12:45 Returning a const
15:05 Standard containers
15:46 a C++20 solution
17:04 Summary

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/m...

All QML tips and tricks videos :    • QML Tips and Tricks  

All Qt Widgets and more videos:
   • Qt Widgets and more  

About the host:
The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.

Every month our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-reso...

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at [email protected] or visit our website: https://www.kdab.com/software-service...

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]