Modern C++ development requires efficient string handling without unnecessary memory allocations. Understanding how major compilers support and optimize std::string_view is essential for writing high-performance, modern code. This text-based course guides you through the inner workings of std::string_view in C++17, ensuring you can write portable and highly optimized code across different environments.
You will transition from basic string passing to advanced, zero-allocation string manipulation, backed by a deep understanding of how compilers optimize this lightweight wrapper.
What you'll learn:
- Understand the core memory layout and foundational concepts of std::string_view
- Compare compiler compatibility and behavior across GCC, Clang, and MSVC versions
- Analyze assembly output to verify that compilers are optimizing string_view parameters
- Apply best practices to avoid common pitfalls like dangling references and lifetime issues
- Integrate modern C++ static analysis tools to catch string_view misuses early
This course starts with fundamental definitions and memory layouts before moving into compiler-specific behavior, optimization flags, and practical code patterns. You will read through clear, step-by-step explanations and analyze real-world code snippets to see exactly how different compilers handle your code.
This course is designed for beginner to intermediate C++ developers who want to modernize their codebase with C++17 features. No prior experience with compiler optimization is required.
Start writing faster, safer, and more efficient modern C++ code today.
สิ่งที่คุณจะได้รับ
📜ใบประกาศนียบัตร เพิ่มในโปรไฟล์ LinkedIn ของคุณ
💬ติวเตอร์ AI ส่วนตัว ติดขัดในบทเรียน? ถามติวเตอร์ในตัวของคุณได้ทุกอย่าง ทุกเวลา