|
Libmagicxx v10.0.3
A modern C++23 wrapper for libmagic — the library that powers the Unix file command.
|
Move, copy, and destruction operations. More...

Functions | |
| Recognition::Magic::Magic (Magic &&other) noexcept | |
| Move constructor. | |
| Recognition::Magic::Magic (const Magic &)=delete | |
| Deleted copy constructor. | |
| Magic & | Recognition::Magic::operator= (Magic &&other) noexcept |
| Move assignment operator. | |
| Magic & | Recognition::Magic::operator= (const Magic &)=delete |
| Deleted copy assignment operator. | |
| Recognition::Magic::~Magic () | |
| Destructor. | |
Move, copy, and destruction operations.
Special member functions controlling Magic lifetime and resource ownership.
|
delete |
Deleted copy constructor.
Magic instances cannot be copied because they own unique libmagic resources. Use move semantics instead.
|
noexcept |
Move constructor.
Transfers ownership of the Magic instance from other to this object. After the move, other is left in a closed state and must be reopened before use.
| [in,out] | other | The Magic instance to move from. Left closed after move. |
Deleted copy assignment operator.
Magic instances cannot be copied because they own unique libmagic resources. Use move semantics instead.
Move assignment operator.
Transfers ownership of the Magic instance from other to this object. Any existing resources in this object are released first. After the move, other is left in a closed state.
| [in,out] | other | The Magic instance to move from. Left closed after move. |
|
default |
Destructor.
Automatically releases all libmagic resources. Equivalent to calling Close().