1
0
Files
nix-shared/home/develop/emacs/snippets/c++-mode/noncopy

10 lines
316 B
Plaintext
Raw Normal View History

# -*- mode: snippet; require-final-newline: nil -*-
# name: noncopy
# key: noncopy
# binding: direct-keybinding
# expand-env: ((yas-indent-line 'fixed))
# --
//! non-copyable: delete copy-constructor
${1:class}(const $1 &) = delete;
//! non-copyable: delete assignment operator
$1 & operator = (const $1 &) = delete;