|
|
|
|
|
by kadoban
2438 days ago
|
|
It's not lazy evaluation at all. Lazy evaluation is a runtime thing, where you delay evaluating an expression until you actually need to. This concept is operators that will never evaluate the expressions they operate on. sizeof is the oldschool obvious one, sizeof(foo()) never runs the function foo. It's just a way of querying the static properties of an expression, asking specific things about its type in a way. They're not new things in C++. sizeof has been around since the beginning. |
|