Add noisy struct snippet

This commit is contained in:
Kenneth Benzie 2016-10-07 19:57:37 +01:00
parent c63b47517d
commit dab43be08c

View File

@ -64,3 +64,15 @@ endsnippet
snippet static_assert "Static assert"
static_assert($1, "$2");
endsnippet
snippet noisy "A noise class"
class noisy_t {
public:
noisy_t() { puts(__PRETTY_FUNCTION__); }
noisy_t(const noisy_t &) { puts(__PRETTY_FUNCTION__); }
noisy_t(noisy_t &&) { puts(__PRETTY_FUNCTION__); }
noisy_t &operator=(const noisy_t &) { puts(__PRETTY_FUNCTION__); return *this; }
noisy_t &operator=(noisy_t &&) { puts(__PRETTY_FUNCTION__); return *this; }
~noisy_t() { puts(__PRETTY_FUNCTION__); }
};
endsnippet