Skip to content
Snippets Groups Projects
Commit 81378cdc authored by Radovan Červený's avatar Radovan Červený
Browse files

stealth_allocator fix #2

parent 449a94d5
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,15 @@ public: ...@@ -38,6 +38,15 @@ public:
operator delete( ptr, false ); operator delete( ptr, false );
} }
   
void destroy ( pointer p ) {
p->~T ( );
}
template < class ... Args >
void construct ( pointer p, Args && ... args ) {
::new ( ( void * ) p )T ( std::forward < Args > ( args ) ... );
}
}; };
   
template < typename T, typename U > template < typename T, typename U >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment