.emacs.d/snippets/c++-mode/main

18 lines
264 B
Plaintext

# -*- mode: snippet -*-
# name: main
# key: main
# --
#include <string_view>
#include <vector>
using std::string_view;
using std::vector;
int main(${1:int argc, char *argv[]})
{
${2:const vector<string_view> args(argv, argv + argc);}
$0
return 0;
}