Removed contributor tag
This commit is contained in:
parent
21b915674a
commit
04ef7136a5
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: accumulate
|
||||
# key: acl
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0, [](int total, $2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: accumulate
|
||||
# key: acm
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto sum = std::accumulate(std::begin(${1:container}), std::end($1), 0);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: adjacent_find
|
||||
# key: ajf
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::adjacent_find(std::begin(${1:container}), std::end($1));
|
||||
if (pos != std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: all_of
|
||||
# key: alo
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::all_of(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: any_of
|
||||
# key: ano
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::any_of(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: count_if
|
||||
# key: cni
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto n = std::count_if(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: count
|
||||
# key: cnt
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto n = std::count(std::begin(${1:container}), std::end($1), $2);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: copy_backward
|
||||
# key: cpb
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::copy_backward(std::begin(${1:container}), std::end($1), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: copy_if
|
||||
# key: cpi
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::copy_if(std::begin(${1:container}), std::end($1), std::begin($2),
|
||||
[]($3) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: copy_n
|
||||
# key: cpn
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::copy_n(std::begin(${1:container}), $2, std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: copy
|
||||
# key: cpy
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::copy(std::begin(${1:container}), std::end($1), std::begin($2));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: equal
|
||||
# key: eql
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::equal(std::begin(${1:container}), std::end($1), std::begin($2))) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: remove
|
||||
# key: erm
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
${1:container}.erase(std::remove(std::begin($1), std::end($1), $2), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: find_first_of
|
||||
# key: ffo
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::find_first_of(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: fill
|
||||
# key: fil
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::fill(std::begin(${1:container}), std::end($1), $2);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: find_if_not
|
||||
# key: fin
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::find_if_not(std::begin(${1:container}), std::end($1),[]($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: fill_n
|
||||
# key: fln
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::fill_n(std::begin(${1:container}), $2, $3);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: find
|
||||
# key: fnd
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::find(std::begin(${1:container}), std::end($1), $2);
|
||||
if (pos != std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: find_end
|
||||
# key: fne
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::find_std::end(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: find_if
|
||||
# key: fni
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::find_if(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: for_each
|
||||
# key: fre
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::for_each(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: generate_n
|
||||
# key: gnn
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::generate_n(std::begin(${1:container}), $2, []($3) {
|
||||
$4
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: generate
|
||||
# key: gnr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::generate(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: is_heap
|
||||
# key: ihp
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::is_heap(std::begin(${1:container}), std::end($1))) {
|
||||
$2
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: is_heap_until
|
||||
# key: ihu
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::is_heap_until(std::begin(${1:container}), std::end($1));
|
||||
if (pos != std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: is_permutation
|
||||
# key: ipr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::is_permutation(std::begin(${1:container}), std::end($1), std::begin($2))) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: is_partitioned
|
||||
# key: ipt
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::is_partitioned(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: is_sorted
|
||||
# key: iss
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::is_sorted(std::begin(${1:container}), std::end($1))) {
|
||||
$2
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: is_sorted_until
|
||||
# key: isu
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::is_sorted_until(std::begin(${1:container}), std::end($1));
|
||||
if (pos != std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: iota
|
||||
# key: ita
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::iota(std::begin(${1:container}), std::end($1), $2);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: transform
|
||||
# key: ltr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
${1:container}.erase(0, $1.find_first_not_of(" \t\n\r"));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: transform
|
||||
# key: lwr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) {
|
||||
return std::tolower(c);});
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: lexigraphical_compare
|
||||
# key: lxc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::lexigraphical_compare(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: make_heap
|
||||
# key: mkh
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::make_heap(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: minmax_element
|
||||
# key: mme
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto minmax = std::minmax_element(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: min_element
|
||||
# key: mne
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::min_element(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: move_backward
|
||||
# key: mpb
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::move_backward(std::begin(${1:container}), std::end($1), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: merge
|
||||
# key: mrg
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::merge(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3), std::begin($4));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: mismatch
|
||||
# key: msm
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto values = std::mismatch(std::begin(${1:container}), std::end($1), std::begin($1));
|
||||
if (values.first == std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: max_element
|
||||
# key: mxe
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::max_element(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: none_of
|
||||
# key: nno
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::none_of(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: nth_element
|
||||
# key: nth
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::nth_element(std::begin(${1:container}), std::end($1), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: next_permutation
|
||||
# key: nxp
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::next_permutation(std::begin(${1:container}), std::end($1))) {
|
||||
$2
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: copy
|
||||
# key: oit
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::copy(std::begin(${1:container}), std::end($1), std::ostream_iterator<$2>{
|
||||
%\istd::cout, "$3"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: push_heap
|
||||
# key: phh
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::push_heap(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: partition_point
|
||||
# key: ppt
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::partition_point(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: prev_permutation
|
||||
# key: prp
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
if (std::prev_permutation(std::begin(${1:container}), std::end($1))) {
|
||||
$2
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: partial_sort_copy
|
||||
# key: psc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::partial_sort_copy(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: partial_sort
|
||||
# key: pst
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::partial_sort(std::begin(${1:container}), std::end($1), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: partition_copy
|
||||
# key: ptc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::partition_copy(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: partition
|
||||
# key: ptn
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::partition(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: replace_copy_if
|
||||
# key: rci
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::replace_copy_if(std::begin(${1:container}), std::end($1),
|
||||
std::begin($1), []($2) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: remove_copy
|
||||
# key: rmc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::remove_copy(std::begin(${1:container}), std::end($1),
|
||||
std::begin($1), $2);
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: remove_copy_if
|
||||
# key: rmf
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::remove_copy_if(std::begin(${1:container}), std::end($1),
|
||||
std::begin($1), []($2) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: remove_if
|
||||
# key: rmi
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::remove_if(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: remove
|
||||
# key: rmv
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::remove(std::begin(${1:container}), std::end($1), $2);
|
||||
if (pos != std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: replace_copy
|
||||
# key: rpc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::replace_copy(std::begin(${1:container}), std::end($1), std::begin($1), $2, $3);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: replace_if
|
||||
# key: rpi
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::replace_if(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: replace
|
||||
# key: rpl
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::replace(std::begin(${1:container}), std::end($1), $2, $3);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: rotate_copy
|
||||
# key: rtc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::rotate_copy(std::begin(${1:container}), std::begin($2), std::end($1),
|
||||
std::begin($3));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: rotate
|
||||
# key: rte
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::rotate(std::begin(${1:container}), std::begin($2), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: reverse_copy
|
||||
# key: rvc
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::reverse_copy(std::begin(${1:container}), std::end($1), std::begin($2));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: reverse
|
||||
# key: rvr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::reverse(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: random_shuffle
|
||||
# key: shf
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::random_shuffle(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: stable_partition
|
||||
# key: spt
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::stable_partition(std::begin(${1:container}), std::end($1), []($2) {
|
||||
$3});
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: search
|
||||
# key: srh
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::search(std::begin(${1:container}), std::end($1),
|
||||
std::begin($2), std::end($3));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: search_n
|
||||
# key: srn
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::search_n(std::begin(${1:container}), std::end($1),$2,$3);
|
||||
if (pos != std::end($1)) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: sort
|
||||
# key: srt
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::sort(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: sort_heap
|
||||
# key: sth
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::sort_heap(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cin
|
||||
# key: sti
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::cin >>
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: cout
|
||||
# key: sto
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::cout <<
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: stable_sort
|
||||
# key: sts
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::stable_sort(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: vector
|
||||
# key: stv
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::vector<$2> $3
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: swap_ranges
|
||||
# key: swr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::swap_ranges(std::begin(${1:container}), std::end($1), std::begin($2));
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: transform
|
||||
# key: tfm
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::transform(std::begin(${1:container}), std::end($1),
|
||||
std::begin($1), []($2) {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: generate_n
|
||||
# key: trm
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
${1:container}.erase($1.find_last_not_of(" \t\n\r") + 1);
|
||||
$0
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: unique_copy
|
||||
# key: ucp
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::unique_copy(std::begin(${1:container}), std::end($1),
|
||||
std::ostream_iterator<string>(std::cout, "\n"));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: transform
|
||||
# key: upr
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
std::transform(std::begin(${1:container}), std::end($1), std::begin($1), [](char c) {
|
||||
return std::toupper(c);
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: unique
|
||||
# key: uqe
|
||||
# contributor: Tommy BENNETT and Ludwig PACIFICI <ludwig@lud.cc>
|
||||
# --
|
||||
auto pos = std::unique(std::begin(${1:container}), std::end($1));
|
||||
$0
|
||||
|
|
Loading…
Reference in a new issue