MISRAC++2023-4.1.2_h (C++ only)
In this section:
Synopsis
(Advisory) Deprecated features should not be used
Enabled by default
No
Severity/Certainty
Medium/Low

Full description
Deprecated feature found [depr.storage.iterator]
Coding standards
This check does not correspond to any coding standard rules.
Code examples
The following code example fails the check and will give a warning:
#include <memory>
void example(){
int* buf = new int[5]{};
auto itr = std::raw_storage_iterator<int*, int>(buf);
}
The following code example passes the check and will not give a warning about this issue:
void example(){
// There is no simple replacement for raw_storage_iterator.
// std::uninitialized_copy can be an alternative in many cases.
}