Lazy CoderDescriptionBoost your C++ development productivity with the CPP Boilerplate Generator extension for Visual Studio Code. Say goodbye to repetitive code setup and hello to streamlined project initialization. This extension provides essential C++ boilerplate code snippets and templates, helping you kickstart your projects swiftly and efficiently. How to useStep 1: Install CPP Easy Snippet Watch TutorialAll C++ Code Snippets📜 Snippets without namespace
|
No | CPP Snippet Without std | Header Files Include |
---|---|---|
1 | io | iostream |
2 | cpphello | iostream, helloworld |
3 | ioal | iostream, algorithm |
4 | iovec | iostream, vector |
5 | iostr | iostream, string |
6 | ioset | iostream, set |
7 | iomap | iostream, map |
7 | iomath | iostream, cmath |
8 | iopair | iostream, utility |
9 | iostack | iostream, stack |
10 | ioque | iostream, queue |
11 | iodeque | iostream, deque |
12 | iopq | iostream, queue |
13 | iolist | iostream, list |
14 | ioit | iostream, iterator |
15 | ioalvec | iostream, algorithm, vector |
16 | iostackvec | iostream, stack, vector |
📜 Snippets with namespace std
No | CPP Snippet With std | Header Files Include |
---|---|---|
1 | stdio | iostream |
2 | stdcpphello | iostream, helloworld |
3 | stdioal | iostream, algorithm |
4 | stdiovec | iostream, vector |
5 | stdiostr | iostream, string |
6 | stdioset | iostream, set |
7 | stdiomap | iostream, map |
7 | stdiomath | iostream, cmath |
8 | stdiopair | iostream, utility |
9 | stdiostack | iostream, stack |
10 | stdioque | iostream, queue |
11 | stdiodeque | iostream, deque |
12 | stdiopq | iostream, queue |
13 | stdiolist | iostream, list |
14 | stdioit | iostream, iterator |
15 | stdioalvec | iostream, algorithm, vector |
16 | stdiostackvec | iostream, stack, vector |
📜 Library Inclusion
Prefix | Expands To |
---|---|
!io |
#include <iostream> |
!al |
#include <algorithm> |
!vec |
#include <vector> |
!math |
#include <cmath> |
!str |
#include <string> |
!set |
#include <set> |
!map |
#include <map> |
!pair |
#include <utility> |
!stack |
#include <stack> |
!queue |
#include <queue> |
!deque |
#include <deque> |
!pq |
#include <queue> |
!list |
#include <list> |
!it |
#include <iterator> |
!all |
#include <bits/stdc++.h> |
📜 Code Snippets
With namespace std
Prefix | Expands To |
---|---|
stdgetln |
std::getline(cin, $1); |
stdout |
std::cout << $1 << std::endl; |
stdin |
std::cin >> $1; |
stdmdec |
std::map<$1> $2; |
stdvdec |
std::vector<$1> $2; |
Without namespace std
Prefix | Expands To |
---|---|
in |
cin >> $1; |
out |
cout << $1 << endl; |
getln |
getline(cin, $1); |
vdec |
vector<$1> $2; |
mdec |
map<$1> $2; |
View Snippet Codes
1. io = iostream
#include <iostream>
using namespace std;
int main()
{
return 0;
}
2. cpphello = iostream + hello
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
3. ioal = iostream + algorithm
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
return 0;
}
4. iovec = iostream + vector
#include <iostream>
#include <vector>
using namespace std;
int main()
{
return 0;
}
4. iomath = iostream + cmath
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
return 0;
}
5. iostr = iostream + string
#include <iostream>
#include <string>
using namespace std;
int main()
{
return 0;
}
6. ioset = iostream + set
#include <iostream>
#include <set>
using namespace std;
int main()
{
return 0;
}
7. iomap = iostream + map
#include<iostream>
#include <map>
using namespace std;
int main()
{
return 0;
}
8. iopair = iostream + utility
#include<iostream>
#include <utility>
using namespace std;
int main()
{
return 0;
}
9. iostack = iostream + stack
#include <iostream>
#include <stack>
using namespace std;
int main()
{
return 0;
}
10. ioque = iostream + queue
#include<iostream>
#include <queue>
using namespace std;
int main()
{
return 0;
}
11. iodeque = iostream + deque
#include<iostream>
#include <deque>
using namespace std;
int main()
{
return 0;
}
12. iopq = iostream + queue
#include<iostream>
#include <queue>
using namespace std;
int main()
{
return 0;
}
13. iolist = iostream + list
#include<iostream>
#include <list>
using namespace std;
int main()
{
return 0;
}
14. ioit = iostream + iterator
#include<iostream>
#include <iterator>
using namespace std;
int main()
{
return 0;
}
15. ioalvec = iostream + algorithm + vector
#include<iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
return 0;
}
16. iostackvec = iostream + stack + vector
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main()
{
return 0;
}
Enjoy!