X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/630dffb9f1cbc31b03ce38f148089c7f31e04d2a..e72c1c2eb48b7ecbf8138cef0d1640a109041f08:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index a92c41a..9a959b8 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -145,3 +145,11 @@ snippet once "#pragma once" b ${0} endsnippet + +snippet ostream "operator<<(ostream)" b +inline std::ostream & operator<<(std::ostream &os, ${1:Type} const & rhs) +{ + os << ${0}; + return os; +} +endsnippet