Fix: syscall event rule: emission sites not compared in is_equal
[lttng-tools.git] / src / common / make-unique.hpp
1 /*
2 * Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_MAKE_UNIQUE_H
9 #define LTTNG_MAKE_UNIQUE_H
10
11 #include <memory>
12
13 namespace lttng {
14
15 template <typename Type, typename... Args>
16 std::unique_ptr<Type> make_unique(Args&&...args)
17 {
18 return std::unique_ptr<Type>(new Type(std::forward<Args>(args)...));
19 }
20
21 } /* namespace lttng */
22
23 #endif /* LTTNG_MAKE_UNIQUE_H */
This page took 0.030211 seconds and 4 git commands to generate.