Sonnenblume
Alles dreht sich, alles bewegt sich.
- 3 Posts
- 1 Comment
Joined 3 years ago
Cake day: April 21st, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Alles dreht sich, alles bewegt sich.
If you have a constant expression like
1 + 2in your code you can evaluate it at compile time once and avoid computing it at runtime. You can do that with control flow and much more complex language constructs in C++. If you want to know more about that look into C++ template meta programming, constexpr, and constval.