bit_or Function

Returns the binary OR of the two parameters.

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

Parameters

  • _Left
    An lvalue reference to the first parameter.

  • _Right
    An lvalue reference to the second parameter.

Property Value/Return Value

Returns the binary OR 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

<functional> Members