Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-19 08:44:21

0001 /*
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * https://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * Copyright (c) 2023 Andrey Semashev
0007  */
0008 /*!
0009  * \file scope/unique_fd.hpp
0010  *
0011  * This header contains definition of \c unique_fd type.
0012  */
0013 
0014 #ifndef BOOST_SCOPE_UNIQUE_FD_HPP_INCLUDED_
0015 #define BOOST_SCOPE_UNIQUE_FD_HPP_INCLUDED_
0016 
0017 #include <boost/scope/detail/config.hpp>
0018 #include <boost/scope/unique_resource.hpp>
0019 #include <boost/scope/fd_deleter.hpp>
0020 #include <boost/scope/fd_resource_traits.hpp>
0021 #include <boost/scope/detail/header.hpp>
0022 
0023 #ifdef BOOST_HAS_PRAGMA_ONCE
0024 #pragma once
0025 #endif
0026 
0027 namespace boost {
0028 namespace scope {
0029 
0030 //! Unique POSIX-like file descriptor resource
0031 using unique_fd = unique_resource< int, fd_deleter, fd_resource_traits >;
0032 
0033 } // namespace scope
0034 } // namespace boost
0035 
0036 #include <boost/scope/detail/footer.hpp>
0037 
0038 #endif // BOOST_SCOPE_UNIQUE_FD_HPP_INCLUDED_