命名空间
变体
操作

std::logical_and<void>

来自 cppreference.cn
 
 
 
函数对象
函数调用
(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)
logical_and<>
(C++14)

旧绑定器和适配器
(直到 C++17*)
(直到 C++17*)
(直到 C++17*)
(直到 C++17*)  
(直到 C++17*)
(until C++17*)(until C++17*)(until C++17*)(until C++17*)
(直到 C++20*)
(直到 C++20*)
(直到 C++17*)(直到 C++17*)
(直到 C++17*)(直到 C++17*)

(直到 C++17*)
(until C++17*)(until C++17*)(until C++17*)(until C++17*)
(直到 C++20*)
(直到 C++20*)
 
定义于头文件 <functional>
template<>
class logical_and<void>;
(C++14 起)

std::logical_and<void>std::logical_and 的一个特化版本,其参数和返回类型都是推导的。

目录

[编辑] 嵌套类型

嵌套类型 定义
is_transparent 未指定

[编辑] 成员函数

operator()
lhsrhs 应用 operator&&
(公开成员函数)

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

template< class T, class U >

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

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

返回 lhs && rhs 的结果。

参数

lhs, rhs - 要进行逻辑与操作的值

返回值

lhs && rhs 的结果。

[编辑] 示例