Warning, file /include/cppcoro/file_share_mode.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 
0002 
0003 
0004 
0005 #ifndef CPPCORO_FILE_SHARE_MODE_HPP_INCLUDED
0006 #define CPPCORO_FILE_SHARE_MODE_HPP_INCLUDED
0007 
0008 namespace cppcoro
0009 {
0010     enum class file_share_mode
0011     {
0012         
0013         none = 0,
0014 
0015         
0016         
0017         read = 1,
0018 
0019         
0020         
0021         write = 2,
0022 
0023         
0024         
0025         read_write = read | write,
0026 
0027         
0028         
0029         delete_ = 4
0030     };
0031 
0032     constexpr file_share_mode operator|(file_share_mode a, file_share_mode b)
0033     {
0034         return static_cast<file_share_mode>(
0035             static_cast<int>(a) | static_cast<int>(b));
0036     }
0037 
0038     constexpr file_share_mode operator&(file_share_mode a, file_share_mode b)
0039     {
0040         return static_cast<file_share_mode>(
0041             static_cast<int>(a) & static_cast<int>(b));
0042     }
0043 }
0044 
0045 #endif