Simple using statements

This commit is contained in:
Steven Dee (Jōshin) 2024-08-31 16:01:13 -07:00
parent 5757eaf70d
commit 524f1fd2c2
No known key found for this signature in database

View file

@ -24,22 +24,9 @@
// #include <type_traits>
// #define ctl std
template<typename T, typename D = ctl::default_delete<T>>
using unique_ptr = ctl::unique_ptr<T, D>;
template<typename T, typename... Args>
unique_ptr<T>
make_unique(Args&&... args)
{
return ctl::make_unique<T, Args...>(ctl::forward<Args>(args)...);
}
template<typename T>
unique_ptr<T>
make_unique_for_overwrite()
{
return ctl::make_unique_for_overwrite<T>();
}
using ctl::unique_ptr;
using ctl::make_unique;
using ctl::make_unique_for_overwrite;
#undef ctl