1 #ifndef SILICIUM_FILE_HANDLE_HPP
2 #define SILICIUM_FILE_HANDLE_HPP
15 : handle(no_file_handle)
20 : handle(no_file_handle)
25 explicit file_handle(native_file_descriptor handle) BOOST_NOEXCEPT
39 swap(handle, other.handle);
47 native_file_descriptor
release() BOOST_NOEXCEPT
54 if (handle != no_file_handle)
56 terminating_close(handle);
file_handle() BOOST_NOEXCEPT
Definition: file_handle.hpp:14
BOOST_STATIC_ASSERT(Si::is_handle< absolute_path >::value)
native_file_descriptor handle
Definition: file_handle.hpp:12
file_handle(native_file_descriptor handle) BOOST_NOEXCEPT
Definition: file_handle.hpp:25
Definition: absolute_path.hpp:19
native_file_descriptor release() BOOST_NOEXCEPT
Definition: file_handle.hpp:47
file_handle & operator=(file_handle &&other) BOOST_NOEXCEPT
Definition: file_handle.hpp:30
T exchange(T &dest, U &&source)
Definition: exchange.hpp:30
file_handle(file_handle &&other) BOOST_NOEXCEPT
Definition: file_handle.hpp:19
void close() BOOST_NOEXCEPT
Definition: file_handle.hpp:42
void swap(file_handle &other) BOOST_NOEXCEPT
Definition: file_handle.hpp:36
#define SILICIUM_DELETED_FUNCTION(f)
Definition: config.hpp:111
Definition: file_handle.hpp:10
Definition: is_handle.hpp:21
~file_handle() BOOST_NOEXCEPT
Definition: file_handle.hpp:52