Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
move_by_copy_util::MoveByCopy< T > Class Template Reference

#include <src/move_by_copy.h>

Public Types

typedef T move_type

Public Member Functions

 MoveByCopy (move_type &&to_move)
 MoveByCopy (MoveByCopy &&other)=default
 MoveByCopy (const MoveByCopy &other)
MoveByCopy & operator= (MoveByCopy &&other)=default
MoveByCopy & operator= (const MoveByCopy &other)
 operator move_type ()

Detailed Description

template<class T>
class move_by_copy_util::MoveByCopy< T >

When a copy is made, it moves the object This allows you to move an object when a move can't be done.

Definition at line 19 of file move_by_copy.h.

Member Typedef Documentation

◆ move_type

template<class T>
typedef T move_by_copy_util::MoveByCopy< T >::move_type

Definition at line 21 of file move_by_copy.h.

Constructor & Destructor Documentation

◆ MoveByCopy() [1/2]

template<class T>
move_by_copy_util::MoveByCopy< T >::MoveByCopy ( move_type && to_move)
inlineexplicit

Definition at line 27 of file move_by_copy.h.

◆ MoveByCopy() [2/2]

template<class T>
move_by_copy_util::MoveByCopy< T >::MoveByCopy ( const MoveByCopy< T > & other)
inline

Definition at line 33 of file move_by_copy.h.

Member Function Documentation

◆ operator move_type()

template<class T>
move_by_copy_util::MoveByCopy< T >::operator move_type ( )
inline

Definition at line 45 of file move_by_copy.h.

◆ operator=()

template<class T>
MoveByCopy & move_by_copy_util::MoveByCopy< T >::operator= ( const MoveByCopy< T > & other)
inline

Definition at line 39 of file move_by_copy.h.


The documentation for this class was generated from the following file: