    

 ## On this page

  

 

 # ToggleBits

 Last update: 09.03.2026 

Returns the input with all bits toggled: 0 replaced by 1 and vice versa. This is equivalent to the operator lnot.

## Interface

NameKindTypeCommentNPN/ASize of the bit-fieldbfIunsigned&lt;&lt;N&gt;&gt;Input bit-fieldvOunsigned&lt;&lt;N&gt;&gt;Result of the operation**Parent topic:**[Bitfield](./bitfield.md)