update packages
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: accumulate
|
||||
# key: acl
|
||||
# --
|
||||
auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) {
|
||||
$3
|
||||
});
|
||||
$0
|
||||
@@ -1,5 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: d_operator<<
|
||||
# key: <<
|
||||
# --
|
||||
friend std::ostream& operator<<(std::ostream&, const ${1:Name}&);
|
||||
@@ -1,8 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: copy
|
||||
# key: oit
|
||||
# --
|
||||
std::copy(std::begin(${1:container}), std::end($1), std::ostream_iterator<$2>{
|
||||
%\istd::cout, "$3"
|
||||
});
|
||||
$0
|
||||
@@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: remove
|
||||
# key: rmv
|
||||
# --
|
||||
auto pos = std::remove(std::begin(${1:container}), std::end($1), $2);
|
||||
if (pos != std::end($1)) {
|
||||
$3
|
||||
}
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: cin
|
||||
# key: sti
|
||||
# --
|
||||
std::cin >>
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: cout
|
||||
# key: sto
|
||||
# --
|
||||
std::cout <<
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: vector
|
||||
# key: stv
|
||||
# --
|
||||
std::vector<$2> $3
|
||||
$0
|
||||
@@ -1,6 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: generate_n
|
||||
# key: trm
|
||||
# --
|
||||
${1:container}.erase($1.find_last_not_of(" \t\n\r") + 1);
|
||||
$0
|
||||
@@ -1,9 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: transform
|
||||
# key: upr
|
||||
# --
|
||||
std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) {
|
||||
return std::toupper(c);
|
||||
});
|
||||
$2
|
||||
$0
|
||||
Reference in New Issue
Block a user