Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Classes Part 22 - Curly brace versus parenthesis and std::initializer_list| Modern cpp Series Ep. 59

Автор: Mike Shah

Загружено: 2022-05-07

Просмотров: 10955

Описание:

►Full C++ Series Playlist:    • The C++ Programming Language  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Lesson Description: In this lesson I show you three different ways to initialize a variable (the fourth would be to perhaps not initialize the variable which is bad practice). In C++ there is a difference between using curly braces and parenthesis. Parenthesis will call the constructor and setup any arguments. Curly braces may also call the right constructor, but will also prevent narrowing (i.e. conversion of types). In addition, using curly braces to initialize an object will use a constructor with an std::initializer_list if one is defined.

►YouTube Channel:    / mikeshah  
►Please like and subscribe to help the channel!

Classes Part 22 - Curly brace versus parenthesis and std::initializer_list| Modern cpp Series Ep. 59

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

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

Скачать аудио mp3

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

Classes part 23 - Composition (and aggregation) versus Inheritance in C++ | Modern Cpp Series Ep. 60

Classes part 23 - Composition (and aggregation) versus Inheritance in C++ | Modern Cpp Series Ep. 60

STL std::string_view and when to use it versus std::string | Modern Cpp Series Ep. 113

STL std::string_view and when to use it versus std::string | Modern Cpp Series Ep. 113

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

C++ Weekly - Ep 194 - From SFINAE To Concepts With C++20

C++ Weekly - Ep 194 - From SFINAE To Concepts With C++20

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

Functors() — Функциональные объекты — функции с состоянием | Modern Cpp Series, выпуск 99

Functors() — Функциональные объекты — функции с состоянием | Modern Cpp Series, выпуск 99

lvalue, rvalue, lvalue references and an intro to rvalue references | Modern Cpp Series Ep. 31

lvalue, rvalue, lvalue references and an intro to rvalue references | Modern Cpp Series Ep. 31

Самые важные паттерны в программировании

Самые важные паттерны в программировании

Re-inventing move semantics in modern C++ in 13 minutes

Re-inventing move semantics in modern C++ in 13 minutes

Classes part 24 - Multiple Inheritance Revisited (Virtual inheritance) | Modern Cpp Series Ep. 61

Classes part 24 - Multiple Inheritance Revisited (Virtual inheritance) | Modern Cpp Series Ep. 61

C++ Weekly - Ep 348 - A Modern C++ Quick Start Tutorial - 90 Topics in 20 Minutes

C++ Weekly - Ep 348 - A Modern C++ Quick Start Tutorial - 90 Topics in 20 Minutes

std::unique_ptr - A scoped smart pointer | Modern Cpp Series Ep. 33

std::unique_ptr - A scoped smart pointer | Modern Cpp Series Ep. 33

Динамическое выделение памяти – Учебное пособие по указателям C++ [8]

Динамическое выделение памяти – Учебное пособие по указателям C++ [8]

5 уровней C++

5 уровней C++

Законодательное ограничение C++

Законодательное ограничение C++

C++ Casting — Часть 5 — reinterpret_cast | Modern Cpp Series, Эпизод 97

C++ Casting — Часть 5 — reinterpret_cast | Modern Cpp Series, Эпизод 97

Electrons Don't Actually Orbit Like This

Electrons Don't Actually Orbit Like This

Back to Basics: Initialization in C++ - Ben Saks - CppCon 2023

Back to Basics: Initialization in C++ - Ben Saks - CppCon 2023

Namespaces in C++

Namespaces in C++

CppCon 2018: Nicolai Josuttis “The Nightmare of Initialization in C++”

CppCon 2018: Nicolai Josuttis “The Nightmare of Initialization in C++”

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



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