|
|
|
|
|
by bregma
2118 days ago
|
|
The "zero-cost abstraction" concept is that you don't pay for something you don't use. If you use a smart pointer, you pay for it. If you don't use a smart pointer, it's zero cost. Any argument that smart pointers are not zero cost to the language because they have a cost when you use them is a classic straw man argument. |
|