danzh | 0264092 | 2019-04-16 14:49:47 -0700 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_EPOLL_SERVER_PLATFORM_API_EPOLL_PTR_UTIL_H_ |
| 6 | #define QUICHE_EPOLL_SERVER_PLATFORM_API_EPOLL_PTR_UTIL_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | |
| 10 | #include "net/tools/epoll_server/platform/impl/epoll_ptr_util_impl.h" |
| 11 | |
| 12 | namespace epoll_server { |
| 13 | |
| 14 | template <typename T, typename... Args> |
| 15 | std::unique_ptr<T> EpollMakeUnique(Args&&... args) { |
| 16 | return EpollMakeUniqueImpl<T>(std::forward<Args>(args)...); |
| 17 | } |
| 18 | |
| 19 | } // namespace epoll_server |
| 20 | |
| 21 | #endif // QUICHE_EPOLL_SERVER_PLATFORM_API_EPOLL_PTR_UTIL_H_ |