Initial commit.

This commit is contained in:
2016-02-18 14:53:30 +01:00
commit 8e93ca7a95
2215 changed files with 341269 additions and 0 deletions

View File

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

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);

View File

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

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

View File

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

View File

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

View File

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

View File

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

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

View File

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