X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/188b74675bc1baefa691d99fb3a6a642c2158397..refs/heads/lazyvim:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 46b1480..a677d5f 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -30,9 +30,13 @@ snippet rule5 "Default constructors/destructors/operaters" b ${1:classname}() = default; ~$1() = default; $1($1 const &) = default; -$1($1 &&) = default; +$1($1 &&) noexcept = default; $1 &operator=($1 const &) = default; -$1 &operator=($1 &&) = default; +$1 &operator=($1 &&) noexcept = default; +endsnippet + +snippet spaceship "defaulted spaceship operator <=>" +friend auto operator<=>(${1:type} const&, $1 const&) = default; endsnippet snippet ns "namespace .. (namespace)"