diff options
| author | jdhao <jdhao@hotmail.com> | 2021-09-02 23:29:41 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-09-02 23:29:41 +0800 |
| commit | b4d320ccd3c5b523fbfebfbd0cce26ad7f5a398a (patch) | |
| tree | e2c749da5609d46173a7d4d2d909bb7ccd15b507 /my_snippets/cpp.snippets | |
| parent | 83719b7827d2154592514efe012af523e9ad28f0 (diff) | |
update cpp snippets
Diffstat (limited to 'my_snippets/cpp.snippets')
| -rw-r--r-- | my_snippets/cpp.snippets | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/my_snippets/cpp.snippets b/my_snippets/cpp.snippets index 1ddf414..c30230a 100644 --- a/my_snippets/cpp.snippets +++ b/my_snippets/cpp.snippets @@ -102,3 +102,31 @@ snippet incstack "Use stack" b using std::stack; endsnippet + +snippet vec "std::vector" w +vector<$1> ${2:vec} +endsnippet + +snippet map "std::map" w +map<$1, $2> ${3:mymap} +endsnippet + +snippet umap "std::unordered_map" +unordered_map<$1, $2> ${3:mymap} +endsnippet + +snippet set "std::set" w +set<$1> ${2:myset} +endsnippet + +snippet uset "std::unordered_set" w +unordered_set<$1> ${2:myset} +endsnippet + +snippet queue "std::queue" w +queue<$1> ${2:q} +endsnippet + +snippet stack "std::stack" w +stack<$1> ${2:mystack} +endsnippet |
