Abekus — AI learning and job matching platform logo

C++ Modern Features

  • 141 lessons
  • About 18 hours
  • Self-paced
  • Certificate on completion
0%Complete
Guided Mode

Start with lesson 1

141 lessons. The first one is free, no signup needed.

🗺️ Your learning path
C++ Evolution
Modern C++ Philosophy

What you'll learn

  • Trace the evolution of C++ from C++98 through C++17 and C++20 — what each release added, what it replaced, and the philosophy (RAII, zero-cost abstractions, value semantics) that defines modern style.
  • Use auto and decltype correctly — when type deduction helps, when it hides important information, the rules for references and cv-qualifiers, and the difference between decltype(x) and decltype((x)).
  • Write lambda expressions fluently — capture lists (by-value, by-reference, init capture), generic lambdas with auto parameters, mutable lambdas, and lambdas as arguments to STL algorithms.
  • Reason about rvalue references and move semantics — when copies become moves, the rule of five vs rule of zero, perfect forwarding with std::forward, and the move-or-copy trap with named return values.
  • Pick the right smart pointer — std::unique_ptr for sole ownership, std::shared_ptr for shared ownership, std::weak_ptr for breaking cycles — and use make_unique / make_shared idiomatically.
  • Apply modern class features — default and deleted functions, delegating and inheriting constructors, uniform initialisation with braces, and enum class for type-safe enumerations.
  • Use constexpr for compile-time work — constexpr functions, if constexpr for compile-time branching, static_assert for invariants, and the cases where constexpr beats macros and templates.
  • Write basic concurrent C++ — std::thread, std::mutex and lock_guard / unique_lock, std::async and std::future / std::promise, and the safe-publication patterns that prevent races.
  • Use the C++17 vocabulary types — std::optional for maybe-values, std::variant for type-safe unions, std::string_view for non-owning string references, and std::any when type erasure earns its keep.
  • Apply C++17 language features — structured bindings for tuple-like decomposition, CTAD (class template argument deduction), if-with-initializer, and the inline-variable and fold-expression additions.
  • Recognise modern C++ idioms in real code — concept comparisons (raw pointer vs unique_ptr; class vs struct; lambda vs functor), pattern selection, and modern C++ in production code.

About this course

C++ Modern Features is a practice course on Abekus built around 1,600+ MCQs covering everything C++11 onwards has added to the language — auto and decltype, lambdas, move semantics and rvalue references, smart pointers (unique_ptr, shared_ptr, weak_ptr), constexpr, structured bindings, std::optional and std::variant, concurrency primitives, and the C++17 language additions that define the modern style.

The format is one question at a time with an explanation that fires the moment you click a wrong answer. No videos, no passive reading — retrieval practice on the trap framings interviewers ask about and the idiom decisions you make every day in production code. You will pick between unique_ptr and shared_ptr under specific constraints, trace why a returned object moves rather than copies, and recognise when a lambda's capture-by-reference creates a dangling pointer.

Learning path

C++ Mastery

A complete C++ learning track on Abekus — from language fundamentals through modern C++11/14/17/20/23 features, the STL, and template metaprogramming. Free MCQ practice with instant explanations, designed as a progression: each course builds on the one before.

4 courses·6,050 practice MCQs·84.5h of content

Frequently asked questions