Type‐safe set of script verification flags backed by a bitmask.

Synopsis

Declared in <script/verify_flags.h>

class script_verify_flags;

Type Aliases

Name

Description

value_type

Underlying integer type holding the flag bits.

Member Functions

Name

Description

script_verify_flags [constructor]

Constructors

~script_verify_flags [destructor]

Destructor.

operator=

Assignment operators

as_int

Get the raw integer bitmask.

operator&=

Clear all bits not present in another flag set in place.

operator|=

Set the bits of another flag set in place.

operator~

Bitwise complement of the flag set.

operator bool

Test whether any flag is set.

operator==

Test two flag sets for equality.

Static Member Functions

Name

Description

from_int

Build a flag set from a raw integer bitmask.

Friends

Name

Description

operator<=>

Compare two script_verify_flags. <, >, <=, and >= are auto‐generated from this.

operator&

Bitwise AND of two flag sets.

operator|

Bitwise OR of two flag sets.

Non-Member Functions

Name

Description

GetBlockScriptFlags

Return the script flags which should be checked for a given block.

GetScriptFlagNames

List the human‐readable names of the set verification flags.

operator|

Bitwise OR of two flag names.

operator~

Bitwise complement of a single flag name.

Created with MrDocs