File indexing completed on 2025-04-19 08:44:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef BOOST_SCOPE_FD_RESOURCE_TRAITS_HPP_INCLUDED_
0016 #define BOOST_SCOPE_FD_RESOURCE_TRAITS_HPP_INCLUDED_
0017
0018 #include <boost/scope/detail/config.hpp>
0019 #include <boost/scope/detail/header.hpp>
0020
0021 #ifdef BOOST_HAS_PRAGMA_ONCE
0022 #pragma once
0023 #endif
0024
0025 namespace boost {
0026 namespace scope {
0027
0028
0029 struct fd_resource_traits
0030 {
0031
0032 static int make_default() noexcept
0033 {
0034 return -1;
0035 }
0036
0037
0038 static bool is_allocated(int fd) noexcept
0039 {
0040 return fd >= 0;
0041 }
0042 };
0043
0044 }
0045 }
0046
0047 #include <boost/scope/detail/footer.hpp>
0048
0049 #endif