12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef BOOST_SCOPE_FD_RESOURCE_TRAITS_HPP_INCLUDED_
- #define BOOST_SCOPE_FD_RESOURCE_TRAITS_HPP_INCLUDED_
- #include <boost/scope/detail/config.hpp>
- #include <boost/scope/detail/header.hpp>
- #ifdef BOOST_HAS_PRAGMA_ONCE
- #pragma once
- #endif
- namespace boost {
- namespace scope {
- struct fd_resource_traits
- {
-
- static int make_default() noexcept
- {
- return -1;
- }
-
- static bool is_allocated(int fd) noexcept
- {
- return fd >= 0;
- }
- };
- }
- }
- #include <boost/scope/detail/footer.hpp>
- #endif
|