cost 195 ms
When to use _Notnull_ in C++?

Can someone provide insight when to use _Notnull_? I'm using Visual Studio 2019 and here is my code: Yet, the _Notnull_ lets the function run. I ca ...

can an "_inout" parameter be "const" "?

My understanding is that if a pointer points to something that is read and written, that is, "inout" then, by definition it cannot be "const" (because ...

2022-02-22 06:31:47   1   69    c / sal  
MSVC SAL vs. C++2a Contract

In MSVC, there is SAL feature, which can be used to describe the parameter, result and so on, and it works well, and portable is also good, C++2a Cont ...

2018-12-15 08:57:09   1   90    c++ / c++20 / sal  

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM