|
Sunshine master
Self-hosted game stream host for Moonlight.
|
#include <src/move_by_copy.h>
Public Types | |
| typedef T | move_type |
| Wrapped type moved through copy-shaped APIs. | |
Public Member Functions | |
| MoveByCopy (const MoveByCopy &other) | |
| Copy by moving the stored object out of another wrapper. | |
| MoveByCopy (move_type &&to_move) | |
| Store a move-only value for transfer through copy-only call sites. | |
| MoveByCopy (MoveByCopy &&other)=default | |
| Move the stored object from another wrapper. | |
| operator move_type () | |
| Move the wrapped object out of this helper. | |
| MoveByCopy & | operator= (const MoveByCopy &other) |
| Copy-assign by moving the wrapped object out of the source wrapper. | |
| MoveByCopy & | operator= (MoveByCopy &&other)=default |
| Move-assign the wrapped object from another wrapper. | |
When a copy is made, it moves the object This allows you to move an object when a move can't be done.
|
inlineexplicit |
Store a move-only value for transfer through copy-only call sites.
| to_move | Object whose ownership is moved into this wrapper. |
|
default |
Move the stored object from another wrapper.
| other | Wrapper whose stored object is moved into this object. |
|
inline |
Copy by moving the stored object out of another wrapper.
| other | Wrapper whose stored object will be moved despite the copy signature. |
|
inline |
Copy-assign by moving the wrapped object out of the source wrapper.
| other | Source object whose state is copied or moved into this object. |
|
default |
Move-assign the wrapped object from another wrapper.
| other | Source object whose state is copied or moved into this object. |