std::bit_or<void>
来自cppreference.com
                    
                                        
                    < cpp | utility | functional
                    
                                                            
                    |   定义于头文件  <functional>
  | 
||
|   template<> class bit_or<void>;  | 
(C++14 起) | |
std::bit_or<> 是 std::bit_or 的特化,拥有待推导的参数和返回类型。
成员类型
| 成员类型 | 定义 | 
  is_transparent
 | 
/* 未指定 */ | 
成员函数
|     operator()  | 
  应用 operator| 到 lhs 与 rhs (公开成员函数)  | 
std::bit_or<>::operator()
|   template< class T, class U> constexpr auto operator()( T&& lhs, U&& rhs ) const  | 
||
返回 std::forward<T>(lhs) | std::forward<U>(rhs) 的结果。
参数
| lhs, rhs | - | 为之计算逐位或的值 | 
返回值
std::forward<T>(lhs) | std::forward<U>(rhs) 的结果。
注意
is_transparent 指示调用方,此函数对象是一个通透函数对象:它接受任意类型的参数并使用完美转发,这在将函数对象在多种语境中,或以右值参数使用时,避免不需要的复制和转换。特别是,诸如 std::set::find 和 std::set::lower_bound 的模板函数在其 Compare 类型上使用此类型。
示例
| 本节未完成 原因:暂无示例  |