Namespaces
Variants

std::bit_or<void>

来自 zh.cppreference.net
 
 
 
函数对象
函数调用
(C++17)(C++23)
恒等函数对象
(C++20)
透明运算符包装器
(C++14)
(C++14)
(C++14)
(C++14)  
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)

旧绑定器与适配器
(至 C++17*)
(至 C++17*)
(至 C++17*)
(至 C++17*)
(至 C++17*)(至 C++17*)(至 C++17*)(至 C++17*)
(至 C++20*)
(至 C++20*)
(至 C++17*)(至 C++17*)
(至 C++17*)(至 C++17*)

(至 C++17*)
(至 C++17*)(至 C++17*)(至 C++17*)(至 C++17*)
(至 C++20*)
(至 C++20*)
 
定义于头文件 <functional>
template<>
class bit_or<void>;
(since C++14)

std::bit_or<void> 是 std::bit_or 的一个特化,其参数和返回类型被推导。

嵌套类型

嵌套类型 定义
is_transparent 未指定

成员函数

operator()
对 lhs 和 rhs 应用 operator|
(公开成员函数)

std::bit_or<void>:: operator()

template < class T, class U >

constexpr auto operator ( ) ( T && lhs, U && rhs ) const

- > decltype ( std:: forward < T > ( lhs ) | std:: forward < U > ( rhs ) ) ;

返回 std:: forward < T > ( lhs ) | std:: forward < U > ( rhs ) 的结果。

参数

lhs, rhs - 要进行按位或运算的值

返回值

std:: forward < T > ( lhs ) | std:: forward < U > ( rhs ) 。

示例