Add noisy struct snippet
This commit is contained in:
parent
c63b47517d
commit
dab43be08c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user