Share via


bit_xor Function

Returns the binary XOR of the values of the two parameters.

template<class Type>
    struct bit_xor : public binary_function< Type, Type, Type > {
        Type operator()(
            const Type& _Left, 
            const Type& _Right
        ) const;
    };

Parameters

  • _Left
    An lvalue reference for the first parameter.

  • _Right
    An lvalue reference for the second parameter.

Return Value

Returns the binary XOR of the values of the two parameters.

Remarks

The template class defines its member function as returning _Left ^ _Right.

Requirements

Header: <functional>

Namespace: std

See Also

Reference

<functional>

Lvalues and Rvalues

Standard Template Library

Other Resources

<functional> Members