整理
This commit is contained in:
38
include/boost/scope/unique_fd.hpp
Normal file
38
include/boost/scope/unique_fd.hpp
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* https://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* Copyright (c) 2023 Andrey Semashev
|
||||
*/
|
||||
/*!
|
||||
* \file scope/unique_fd.hpp
|
||||
*
|
||||
* This header contains definition of \c unique_fd type.
|
||||
*/
|
||||
|
||||
#ifndef BOOST_SCOPE_UNIQUE_FD_HPP_INCLUDED_
|
||||
#define BOOST_SCOPE_UNIQUE_FD_HPP_INCLUDED_
|
||||
|
||||
#include <boost/scope/detail/config.hpp>
|
||||
#include <boost/scope/unique_resource.hpp>
|
||||
#include <boost/scope/fd_deleter.hpp>
|
||||
#include <boost/scope/fd_resource_traits.hpp>
|
||||
#include <boost/scope/detail/header.hpp>
|
||||
|
||||
#ifdef BOOST_HAS_PRAGMA_ONCE
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
namespace scope {
|
||||
|
||||
//! Unique POSIX-like file descriptor resource
|
||||
using unique_fd = unique_resource< int, fd_deleter, fd_resource_traits >;
|
||||
|
||||
} // namespace scope
|
||||
} // namespace boost
|
||||
|
||||
#include <boost/scope/detail/footer.hpp>
|
||||
|
||||
#endif // BOOST_SCOPE_UNIQUE_FD_HPP_INCLUDED_
|
||||
Reference in New Issue
Block a user