std::logical_and<void>

< cpp‎ | utility‎ | functional
在标头 <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 的结果。

示例