#ifndef __DAHUA_INFRA_CONSTRUCT_H__ #define __DAHUA_INFRA_CONSTRUCT_H__ namespace Dahua { namespace Infra { namespace Datail { template void construct(T* addr, T const& value) { new (addr) T(value); } template void destruct(T& value) { value.~T(); } template void destruct(T* value) { value->~T(); } } // end of Detail } // end of Infra } // end of Dahua #endif // end of __DAHUA_INFRA_CONSTRUCT_H__