* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
3 lines
451 B
Markdown
3 lines
451 B
Markdown
# const_cast
|
|
|
|
`const_cast` is a C++ casting operator that allows you to explicitly add or remove the `const` or `volatile` qualifier from a variable's type. This essentially enables you to modify an object that was initially declared as `const` or pass a `const` object to a function that expects a non-`const` argument. It's a powerful tool but should be used with caution, as modifying a truly `const` object directly can lead to undefined behavior. |