My Project
include
bsl
destroy_at.hpp
Go to the documentation of this file.
1
28
#ifndef BSL_DESTROY_AT_HPP
29
#define BSL_DESTROY_AT_HPP
30
31
namespace
bsl
32
{
50
template
<
typename
T>
51
constexpr
void
52
destroy_at
(T *
const
ptr) noexcept(noexcept(ptr->T::~T()))
// PRQA S 4213
53
{
54
if
(
nullptr
!= ptr) {
55
ptr->T::~T();
56
}
57
}
58
}
59
60
#endif
bsl::destroy_at
constexpr void destroy_at(T *const ptr) noexcept(noexcept(ptr->T::~T()))
Calls the destructor of the object pointed to by ptr.
Definition:
destroy_at.hpp:52
Generated by
1.8.15