std::bit_or
来自cppreference.com
                    
                                        
                    < cpp | utility | functional
                    
                                                            
                    |   定义于头文件  <functional>
  | 
||
|   template< class T > struct bit_or;  | 
(C++14 前) | |
|   template< class T = void > struct bit_or;  | 
(C++14 起) | |
进行逐位或的函数对象。等效地在类型 T 上调用 operator| 。
特化
| 
 标准库提供  
  | 
(C++14 起) | 
成员类型
  | 
(C++20 前) | ||||||||||
成员函数
|    operator()  | 
  返回二个参数逐位或的结果  (公开成员函数)  | 
std::bit_or::operator()
|   T operator()( const T& lhs, const T& rhs ) const;  | 
(C++14 前) | |
|   constexpr T operator()( const T& lhs, const T& rhs ) const;  | 
(C++14 起) | |
返回 lhs 和 rhs 逐位或的结果。
参数
| lhs, rhs | - | 要计算逐位或的值 | 
返回值
lhs | rhs 的结果。
异常
可能抛出实现定义的异常。
可能的实现
constexpr T operator()(const T &lhs, const T &rhs) const { return lhs | rhs; }  |