CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
struct str
{
public:
str() noexcept { std::puts(__PRETTY_FUNCTION__); }
str(const str&) noexcept { std::puts(__PRETTY_FUNCTION__); }
str(str&&) noexcept { std::puts(__PRETTY_FUNCTION__); }
str& operator=(const str&) noexcept
{
std::puts(__PRETTY_FUNCTION__);
return *this;
}
str& operator=(str&&) noexcept
{
std::puts(__PRETTY_FUNCTION__);
return *this;
}
~str() noexcept { std::puts(__PRETTY_FUNCTION__); }
};
struct W
{
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run