| 1 |
#include <concepts> |
| 2 |
#include <iostream> |
| 3 |
|
| 4 |
class Mover |
| 5 |
{ |
| 6 |
public: |
| 7 |
Mover() = default; |
| 8 |
Mover(Mover const &other); |
| 9 |
Mover(Mover &&tmp); |
| 10 |
|
| 11 |
Mover &operator=(Mover &&tmp); |
| 12 |
}; |
| 13 |
|
| 14 |
template <std::movable Type> |
| 15 |
void fun(Type &&type) |
| 16 |
{} |
| 17 |
|
| 18 |
int main() |
| 19 |
{ |
| 20 |
fun(Mover{}); |
| 21 |
} |