Summary
This episode covers two new features coming in C++17. First, Jason introduces nested namespace definitions, which allow developers to declare multi-level namespaces in a single line using a new syntax with double colons. This eliminates the need for multiple indented namespace blocks, making code more readable and editor-friendly. Second, Jason demonstrates std::clamp, a new standard library utility function that constrains a value within a specified range, which simplifies common code patterns used in graphics programming and other domains.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[diff.cpp03.dcl.dcl]47% match -
[alg.clamp]40% match