auto p = &dq[0];
for (int i = 1; i < 10; ++i) {
std::cout << &dq[i] - p<< '\n';
p = &dq[i];
}
auto obj = std::move(arr[5]);
#include <iostream>
#include <ostream>
using namespace std;
struct OBJ {
private:
const int value = 0;
public:
operator int() { return value; }
struct SOMETHING {
private:
const int value = 7;
public:
operator int() { return value; }
enum {
SOMETHING1 = 1,
SOMETHING2 = 2
};
};
};
int main() {
cout << OBJ() << endl;
cout << OBJ::SOMETHING() << endl;
cout << OBJ::SOMETHING::SOMETHING1 << endl;
cout << OBJ::SOMETHING::SOMETHING2 << endl;
return 0;
}