The title says it all. I am curious why is the restrict keyword not part of C++ ? I don't know much about C++, and I'm still not able to find anything online that would give a reason blocking this. Does anyone know what terrible things would happen, if a C++ standard would use this keyword similarly to the way C does? Is it just not needed at all?
More explanation: It is not about using it, perhaps I will not have any benefit from this keyword in my whole life. This question is only about curiosity, since restrict is part of C since C99, that is 15 years.
Read this as well: I'm interested in technical reasons, not opinions like "They just didn't like, it is not cool enough"
restrict
(or variations, like__restrict
) for c++, so in practice this is not that big a deal. – Johnettajohnetterestrict
and c++? I don't get what's your question's all about ... – Globe