2 * Copyright (c) 2022 EfficiOS, inc.
4 * SPDX-License-Identifier: MIT
7 #ifndef BABELTRACE_CPP_COMMON_LIBC_UP_HPP
8 #define BABELTRACE_CPP_COMMON_LIBC_UP_HPP
13 namespace bt2_common {
16 struct FileCloserDeleter
18 void operator()(std::FILE * const f) noexcept
24 } /* namespace internal */
26 using FileUP = std::unique_ptr<std::FILE, internal::FileCloserDeleter>;
28 } /* namespace bt2_common */
30 #endif /* BABELTRACE_CPP_COMMON_LIBC_UP_HPP */