Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

Modern C++ Templates In Depth

Modern C++ Templates Chuyên Sâu

Modern C++ Templates Chuyên Sâu

Làm chủ Modern C++ Templates & Kỹ Thuật Nâng Cao để Viết Code Hiệu Quả, Tái Sử Dụng & Linh Hoạt

4.4
(30 đánh giá)
243 học viên
Giảng viên
Umar Lone
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 399.000đ -87%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
6.0 giờ video
75 bài giảng
9 bài quiz
5 bài coding
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 31/05/2026

Bạn sẽ học được gì

Hiểu toàn diện tại sao templates lại quan trọng trong C++, bao gồm lợi ích và các trường hợp sử dụng
Nắm các khái niệm nền tảng về templates, bao gồm cú pháp và cách dùng cơ bản
Tìm hiểu về suy luận đối số (argument deduction), instantiation, đối số template tường minh (explicit template arguments) và đối số mặc định (default arguments)
Khám phá tham số template phi kiểu (non-type template parameters), nạp chồng (overloading), và quá trình instantiation cho function và class templates
Học các cách truyền đối số khác nhau, bao gồm truyền bằng tham chiếu (by reference) và forwarding reference
Cập nhật với các chuẩn C++ hiện đại, bao gồm alias templates, variadic templates và template lambdas

Yêu cầu

Kiến thức lập trình C++ cơ bản

Đối tượng phù hợp

Lập trình viên C++ muốn hiểu sâu hơn về lập trình template
Sinh viên muốn nắm vững các chi tiết phức tạp của templates trong chương trình học
Lập trình viên thành thạo ngôn ngữ khác muốn chuyển sang hoặc củng cố chuyên môn C++ bằng cách làm chủ templates
Chuyên gia C++ thiết kế và triển khai các hệ thống phức tạp, cần kiến thức chuyên sâu về các mẫu thiết kế (design patterns) dựa trên template và tối ưu hóa

Nội dung khóa học

9 phần • 75 bài giảng
1 Slide bài giảng
2 Tại sao lại dùng Templates - Phần I
3 Tại sao lại dùng Templates - Phần II
4 Giới thiệu về Templates
1 Mã nguồn
2 File Batch Undecorate Names
3 Function Templates
4 Suy luận & Instantiation Đối số Template
5 Đối số Template Tường minh
6 Đối số Mặc định
7 Chuyển đổi Đối số
8 Templates với Specifiers
9 Tham số Template Phi Kiểu
10 Nạp chồng Function Templates
11 Specialization Tường minh
12 Xem lại Nạp chồng
13 Template Instantiation
14 Instantiation Tường minh Cơ bản
15 Cách Dùng Instantiation Tường minh - Phần I
16 Cách Dùng Instantiation Tường minh - Phần II
17 Mô hình Biên dịch Template
18 extern Templates
19 Biến Static Trong Function Templates
1 Mã nguồn
2 Giới thiệu về Class Templates
3 Ví dụ Class Template - Phần I
4 Ví dụ Class Template - Phần II
5 Ví dụ Class Template - Phần III
6 Suy luận Đối số Class Template
7 Instantiation Class Template
8 extern Class Templates
9 Thành viên Static
10 Specialization Tường minh của Member Functions
11 Specialization Tường minh của Class Templates - Phần I
12 Specialization Tường minh của Class Templates - Phần II
13 Specialization Tường minh của Class Templates - Phần III
14 Đối số Class Template Phi Kiểu
15 Specialization Một Phần - Phần I
16 Specialization Một Phần - Phần II
17 Specialization Một Phần - Phần III
1 Mã nguồn
2 Kiểu Tham số - Phần I
3 Kiểu Tham số - Phần II
4 Forwarding References
1 Mã nguồn
2 Tổng quan Thay đổi C++ Hiện đại
3 Dấu Ngoặc Nhọn Phải (Right Angle Bracket)
4 Định nghĩa Kiểu
5 Type Alias & Alias Template
6 extern Templates
7 Variadic Templates
8 Ví dụ Variadic Templates
9 Toán tử sizeof...
10 Variadic Classes
11 Ứng dụng Variadic Templates
1 Mã nguồn
2 C++14 - Variable Template & Generic Lambda
3 Compile-time if
4 Fold Expressions
5 Giữ chỗ Kiểu auto (auto Type Placeholder)
1 Mã nguồn
2 Tham số Template Phi Kiểu
3 Tham số Template Trong Biểu thức Lambda - Phần I
4 Tham số Template Trong Biểu thức Lambda - Phần II
5 auto Viết tắt
1 Mã nguồn
2 Tổng quan Dự án
3 Triển khai Phương thức Add & Print
4 Duyệt
5 Kiểm thử Đơn vị
6 Phương thức Insert
7 Phương thức Erase
8 Tùy chỉnh Print
9 Hiện đại hóa
10 BÀI GIẢNG THƯỞNG

Giới thiệu khóa học

Welcome to a comprehensive course on Modern C++ Templates! This course is designed to provide a deep understanding of the changes and advancements in C++ template programming from C++11 to C++20. The course equips learners with the knowledge and skills to master modern template techniques.

Learn about C++11 alias templates in two detailed lessons, covering how to simplify complex type declarations and enhance code readability. Explore extern templates and understand their role in reducing compilation times.

Delve into variadic templates across five lessons, discussing their syntax, usage, and applications. These lessons provide the tools to create flexible and reusable code that can handle an arbitrary number of arguments. Following this, learn about the changes introduced in C++14 and C++17, including the powerful fold expressions and the auto non-type feature, further streamlining template programming.

In the C++20 segment, learn about non-type template parameters (NTTP) and how they improve template flexibility. Explore template lambdas in three comprehensive lessons, learning to use them for more concise and expressive code. The course concludes with an exploration of the abbreviated auto feature, simplifying type declarations and improving code clarity.

This course not only covers the theoretical aspects of modern C++ templates but also provides practical guidance on how to apply these techniques in real-world scenarios. It demonstrates the usage of using templates with examples from the standard library & other C++ libraries. Utilized templates to write more efficient, maintainable, and expressive code.

By the end of this course, gain a thorough understanding of modern C++ template features and be able to apply them effectively in projects.

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Cpp
Hiển thị tất cả khoá học Programming Languages
Hiển thị tất cả khoá học Software Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊