Emacs: Upgrade main snippet to C++17.
This commit is contained in:
parent
1c93874516
commit
1a6db383c6
|
@ -2,15 +2,15 @@
|
|||
# name: main
|
||||
# key: main
|
||||
# --
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
using std::string;
|
||||
using std::string_view;
|
||||
using std::vector;
|
||||
|
||||
int main(${1:int argc, char *argv[]})
|
||||
{
|
||||
${2:const vector<string> args(argv, argv + argc);}
|
||||
${2:const vector<string_view> args(argv, argv + argc);}
|
||||
$0
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user