[#LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE]
= LLVM&lowbar;ENABLE&lowbar;BITMASK&lowbar;ENUMS&lowbar;IN&lowbar;NAMESPACE
:mrdocs:

LLVM&lowbar;ENABLE&lowbar;BITMASK&lowbar;ENUMS&lowbar;IN&lowbar;NAMESPACE() pulls the operator overloads used by LLVM&lowbar;MARK&lowbar;AS&lowbar;BITMASK&lowbar;ENUM into the current namespace&period;

== Synopsis

Declared in `&lt;llvm&sol;ADT&sol;BitmaskEnum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define LLVM&lowbar;ENABLE&lowbar;BITMASK&lowbar;ENUMS&lowbar;IN&lowbar;NAMESPACE()

----

== Description

Suppose you have an enum foo&colon;&colon;bar&colon;&colon;MyEnum&period; Before using LLVM&lowbar;MARK&lowbar;AS&lowbar;BITMASK&lowbar;ENUM on MyEnum, you must put LLVM&lowbar;ENABLE&lowbar;BITMASK&lowbar;ENUMS&lowbar;IN&lowbar;NAMESPACE() somewhere inside namespace foo or namespace foo&colon;&colon;bar&period; This allows the relevant operator overloads to be found by ADL&period;

You don&apos;t need to use this macro in namespace llvm&semi; it&apos;s done at the bottom of this file&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
