std::bit_and

Header: <functional>

Function object for performing bitwise AND. Effectively calls operator& on type T.

# Declarations

template< class T >
struct bit_and;

(until C++14)

template< class T = void >
struct bit_and;

(since C++14)

# Parameters

# Return value

The result of lhs & rhs.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 660C++98function objects for bitwise operations are missingadded