From Jason Turner
Watch on YouTube

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.

Resources

Tags