Reduce C++ main snippet.
This commit is contained in:
parent
b4977d1a62
commit
55b96614a0
|
@ -2,16 +2,7 @@
|
||||||
# name: main
|
# name: main
|
||||||
# key: main
|
# key: main
|
||||||
# --
|
# --
|
||||||
#include <string_view>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
using std::string_view;
|
|
||||||
using std::vector;
|
|
||||||
|
|
||||||
int main(${1:int argc, char *argv[]})
|
int main(${1:int argc, char *argv[]})
|
||||||
{
|
{
|
||||||
${2:const vector<string_view> args(argv, argv + argc);}
|
|
||||||
$0
|
$0
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user