Language
C++
Compiler
gcc HEAD 14.0.0 20231229 (experimental)
Options
Warnings
Don't Use Boost
C++2b(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -std=gnu++2b
auto demo
//int
auto i=0;
sizeof(i) = 4
//long
auto l=10l;
sizeof(l) = 8
//long long
auto ll=10ll;
sizeof(ll) = 8
//float
auto f=5.f;
sizeof(f) = 4
//double
auto d=5.;
sizeof(d) = 8
//vector<int>::iterator
auto itr=vec.begin();
(vec.front() == *itr) = true
//lambda function
auto lam = [](){cout << "hello, world!";};
lam() =
hello, world!
Exit Code:
0