operator|

Bitwise disjunction operators

Synopses

Declared in <arith_uint256.h>

Combine two sets of permission flags with a bitwise OR.

constexpr
NetPermissionFlags
operator|(
    NetPermissionFlags a,
    NetPermissionFlags b);
» more...

Bitwise OR of two flag names.

constexpr
script_verify_flags
operator|(
    script_verify_flag_name f1,
    script_verify_flag_name f2);
» more...

Bitwise OR of two flag sets.

constexpr
script_verify_flags
operator|(
    script_verify_flags a,
    script_verify_flags b);
» more...

Returns the bitwise OR of two big integers.

base_uint
operator|(
    base_uint const& a,
    base_uint const& b);
» more...

Returns the bitwise OR of two big integers.

base_uint<256>
operator|(
    base_uint<256> const& a,
    base_uint<256> const& b);
» more...

Return Value

  • The union of both flag sets.
  • A flag set holding both flags.
  • The union of a and b.
  • The bitwise OR of a and b.

Parameters

NameDescription
aThe left-hand flag set.
bThe right-hand flag set.
f1The first flag name.
f2The second flag name.