std::logical_and

From Cppreference

Jump to: navigation, search
Defined in header <functional>

template< class T >
struct logical_and;

Function object for performing logical AND (logical conjunction). Effectively calls operator&& on type T.

Contents

[edit] Member types

Type Definition
result_type bool
first_argument_type T
second_argument_type T

[edit] Member functions

operator()
returns the logical AND of the two arguments
(public member function)

std::logical_and::operator()

bool operator()( const T& lhs, const T& rhs ) const;

Returns the logical AND of lhs and rhs.

Parameters

lhs, rhs - values to compute logical AND of

Return value

The result of lhs && rhs.

Exceptions

(none)

Equivalent function