Blaze 3.9
DestroyAt.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_ALGORITHMS_DESTROYAT_H_
36#define _BLAZE_UTIL_ALGORITHMS_DESTROYAT_H_
37
38
39namespace blaze {
40
41//=================================================================================================
42//
43// DESTROY_AT ALGORITHM
44//
45//=================================================================================================
46
47//*************************************************************************************************
56template< typename T >
57void destroy_at( T* p ) noexcept
58{
59 p->~T();
60}
61//*************************************************************************************************
62
63} // namespace blaze
64
65#endif
void destroy_at(T *p) noexcept
Destroys the object at the given address.
Definition: DestroyAt.h:57