You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
362 B

4 months ago
  1. /*
  2. * IXUniquePtr.h
  3. * Author: Benjamin Sergeant
  4. * Copyright (c) 2020 Machine Zone, Inc. All rights reserved.
  5. */
  6. #pragma once
  7. #include <memory>
  8. namespace ix
  9. {
  10. template<typename T, typename... Args>
  11. std::unique_ptr<T> make_unique(Args&&... args)
  12. {
  13. return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  14. }
  15. } // namespace ix