...
/Thread-Safe Initialization: Constant Expressions
Thread-Safe Initialization: Constant Expressions
This lesson gives an overview of thread-safe initialization in the perspective of concurrency in C++ with Constant Expressions
We'll cover the following...
Constant expressions are expressions that the compiler can evaluate at compile time; they are implicitly thread-safe. Placing the keyword constexpr
in front of a variable makes the variable a constant expression. The constant expression must be initialized immediately.
Access this course and 1400+ top-rated courses and projects.