And I encourage you to do so, since you can end up with methods and functions using only elements with constexpr elements and add the constexpr keyword to those functions/methods and allow them to be performed by the compiler, at compile time, instead of being executed at run time.
Here is a godbolt link if you want to experiment with constexpr and C++ in general ;)
I will also add a link to the documentation of constexpr in the article so that people can easily find it
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, it can.
And I encourage you to do so, since you can end up with methods and functions using only elements with
constexpr
elements and add theconstexpr
keyword to those functions/methods and allow them to be performed by the compiler, at compile time, instead of being executed at run time.Here is a godbolt link if you want to experiment with
constexpr
and C++ in general ;)I will also add a link to the documentation of
constexpr
in the article so that people can easily find it