Initial commit.

This commit is contained in:
CAPELLE Mikaël
2020-01-13 15:14:54 +01:00
commit 96a9c67ada
155 changed files with 20314 additions and 0 deletions

5
snippets/c++-mode/acc Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: accumulate
# key: acc
# --
std::accumulate(${1:v}.begin(), $1.end(), ${2:0});

8
snippets/c++-mode/accl Normal file
View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: accumulate_lambda
# key: accl
# --
auto acc = [${3:}] (${4:auto} const& ${5:r}, ${6:auto} const& ${7:v}) {
$0
};
std::accumulate(${1:v}.begin(), $1.end(), ${2:0}, acc);

10
snippets/c++-mode/cls Normal file
View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: class
# key: cls
# --
class ${1:Name} {
public:
${1:$(yas/substr yas-text "[^: ]*")}();
${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();}
};
$0

5
snippets/c++-mode/dcast Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: dynamic cast
# key: dcast
# --
dynamic_cast<${1:type}>(${2:v})

5
snippets/c++-mode/dpcast Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: dynamic pointer cast
# key: dpcast
# --
std::dynamic_pointer_cast<${1:type}>(${2:v})

7
snippets/c++-mode/forc Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for_c
# key: forc
# --
for (${1:auto} ${2:i}: ${3:v}) {
$0
}

5
snippets/c++-mode/scast Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: static cast
# key: scast
# --
static_cast<${1:type}>(${2:v})

9
snippets/c++-mode/sct Normal file
View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: struct
# key: sct
# --
struct ${1:Name} {
${1:$(yas/substr yas-text "[^: ]*")}();
${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();}
};
$0

5
snippets/c++-mode/spcast Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: static pointer cast
# key: spcast
# --
std::static_pointer_cast<${1:type}>(${2:v})

5
snippets/c++-mode/sptr Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: shared_ptr
# key: sptr
# --
std::shared_ptr<${1:type}> ${2:name}$0

5
snippets/c++-mode/todo Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: todo_full
# key: todo
# --
`(yas-with-comment "TODO: ")`

5
snippets/c++-mode/uptr Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: unique_ptr
# key: uptr
# --
std::unique_ptr<${1:type}> ${2:name}$0

5
snippets/c++-mode/wptr Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: weak_ptr
# key: wptr
# --
std::weak_ptr<${1:type}> ${2:name}$0