构造一个basic_file
,但不打开它。
explicit basic_file( const executor_type & ex); » more... template< typename ExecutionContext> explicit basic_file( ExecutionContext & context, constraint_t< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint > = defaulted_constraint()); » more...
构造并打开一个basic_file
。
explicit basic_file( const executor_type & ex, const char * path, file_base::flags open_flags); » more... template< typename ExecutionContext> explicit basic_file( ExecutionContext & context, const char * path, file_base::flags open_flags, constraint_t< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint > = defaulted_constraint()); » more... explicit basic_file( const executor_type & ex, const std::string & path, file_base::flags open_flags); » more... template< typename ExecutionContext> explicit basic_file( ExecutionContext & context, const std::string & path, file_base::flags open_flags, constraint_t< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint > = defaulted_constraint()); » more...
基于现有的原生文件句柄构造一个basic_file
。
basic_file( const executor_type & ex, const native_handle_type & native_file); » more...
基于现有的原生文件构造一个basic_file
。
template< typename ExecutionContext> basic_file( ExecutionContext & context, const native_handle_type & native_file, constraint_t< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint > = defaulted_constraint()); » more...
从另一个basic_file
移动构造。
basic_file( basic_file && other); » more...
从另一个执行器类型的文件移动构造一个basic_file
。
template< typename Executor1> basic_file( basic_file< Executor1 > && other, constraint_t< is_convertible< Executor1, Executor >::value, defaulted_constraint > = defaulted_constraint()); » more...