Those declarations are currently generated by default (which is why the code you provided works), but this behavior is subject to be removed at any time in further revisions to the C++ standard (deprecated).
In Stroustrup's C++11 FAQ, he states
If any move, copy, or destructor is explicitly specified (declared, defined, =default, or =delete) by the user, no move is generated by default.
That is pretty self explanatory. However, he goes on to say that...
If any move, copy, or destructor is explicitly specified (declared, defined, =default, or =delete) by the user, any undeclared copy operations are generated by default, but this is deprecated, so don't rely on that.
He then lists a few examples:
class X1 {
X1& operator=(const X1&) = delete; // Disallow copying
};
This implicitly also disallows moving of X1s. Copy initialization is allowed, but deprecated.
class X2 {
X2& operator=(const X2&) = delete;
};
This implicitly also disallows moving of X2s. Copy initialization is allowed, but deprecated.
class X3 {
X3& operator=(X3&&) = delete; // Disallow moving
};
This implicitly also disallows copying of X3s.
class X4 {
~X4() = delete; // Disallow destruction
};
This implicitly also disallows moving of X4s. Copying is allowed, but deprecated.