## Reference class


[Reference](./) class to allow treating [BitArray](../) elements in contexts where bool is required.

```cpp
class Reference
```

## Methods

| Method | Description |
| --- | --- |
| [operator bool](./operatorbool/)() const | Converts referenced value to bool. |
| [operator&=](./operator&=/)(bool) | Assignment end operator. |
| [operator-=](./operator-=/)(bool) | Assignment substraction operator. |
| [operator=](./operator=/)(bool) | Sets referenced bit value. |
| [operator=](./operator=/)(const Reference\&) | Copies bit value. |
| [operator^=](./operator^=/)(bool) | Assignment xor operator. |
| [operator|=](./operator_=/)(bool) | Assignment or operator. |
| [operator~](./operator~/)() const | Inverts referenced value. |
| [~Reference](./~reference/)() | Deletes reference. |
## See Also

* Class [BitArray](../)
* Namespace [System::Collections](../../)
* Library [Aspose.TeX for C++](../../../)
