Provides the member typedef type which is the same as T, except that its topmost const and volatile qualifiers are removed.
More...
#include <remove_cv.hpp>
|
using | type = T |
| provides the member typedef "type"
|
|
template<typename T>
class bsl::remove_cv< T >
Provides the member typedef type which is the same as T, except that its topmost const and volatile qualifiers are removed.
namespace bsl
{
inline void
example_remove_cv_overview() noexcept
{
}
}
}
SUPPRESSION: PRQA 5219 - false positive
- We suppress this because A2-11-1 states that the volatile keyword cannot be used. The volatile keyword is required to implement the remove_cv type trait, and more importantly, if you use this keyword the code will not actually compile, meaning PRQA is detecting the use of the volatile keyword without first detecting if it is actually being used, only that it is present in the file.
- Note
- "volatile" is not supported by the BSL as it is not compliant with AUTOSAR. We only provide this for completeness and will produce a compile-time error if these APIs are used. Also note that C++ in general is deprectating the use of volatile.
- Template Parameters
-
T | the type to remove the const and volatile qualifiers from |
The documentation for this class was generated from the following file: