Wrap all STL includes to support drv:: and eng::
This commit is contained in:
21
luprex/core/wrap/wrap-memory.hpp
Normal file
21
luprex/core/wrap/wrap-memory.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef WRAP_MEMORY_HPP
|
||||
#define WRAP_MEMORY_HPP
|
||||
|
||||
#include "two-mallocs.hpp"
|
||||
#include <memory>
|
||||
|
||||
namespace eng {
|
||||
template<class T, class D=std::default_delete<T>>
|
||||
using unique_ptr = std::unique_ptr<T, D>;
|
||||
template<class T>
|
||||
using shared_ptr = std::shared_ptr<T>;
|
||||
} // namespace eng
|
||||
|
||||
namespace drv {
|
||||
template<class T, class D=std::default_delete<T>>
|
||||
using unique_ptr = std::unique_ptr<T, D>;
|
||||
template<class T>
|
||||
using shared_ptr = std::shared_ptr<T>;
|
||||
} // namespace drv
|
||||
|
||||
#endif // WRAP_MEMORY_HPP
|
||||
Reference in New Issue
Block a user