Lines Matching refs:auto
2954 template <typename V> auto sum(V first) -> V
2958 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2968 // Test auto and decltype
2969 auto a1 = 6538;
2970 auto a2 = 48573953.4;
2971 auto a3 = "String literal";
2974 for (auto i = a3; *i; ++i) { total += *i; }
2990 for (auto &x : array) { x += 23; }
3005 auto a = sum(1);
3006 auto b = sum(1, 2);
3007 auto c = sum(1.0, 2.0, 3.0);
4967 auto
4979 auto ac = c;
4980 auto av = v;
4981 auto sumi = ac + av + 'x';
4982 auto sumf = ac + av + 1.0;
5073 auto lambda1 = [](){};
5074 auto lambda2 = lambda1;
5082 auto a = [](int i, int j){ return i + j; }(1, 2);
5083 auto b = []() -> int { return '0'; }();
5084 auto c = [=](){ return a + b; }();
5085 auto d = [&](){ return c; }();
5086 auto e = [a, &b](int x) mutable {
5087 const auto identity = [](int y){ return y; };
5088 for (auto i = 0; i < a; ++i)
5098 const auto nullary = [](){ return 0; };
5099 const auto unary = [](int x){ return x; };
5102 const auto higher1st = [](nullary_t f){ return f(); };
5103 const auto higher2nd = [unary](nullary_t f1){
5120 static constexpr auto value = N0 + sum<N1toN...>::value;
5126 static constexpr auto value = 0;
5190 const auto lambda = [](auto&&... args){
5191 const auto istiny = [](auto x){
5205 constexpr auto ivii = 0b0000000000101010;
5217 auto length = 0UL;
5218 for (auto p = s; *p; ++p)
5236 auto x = 0;
5237 const auto lambda1 = [a = x](int b){ return a + b; };
5238 const auto lambda2 = [a = lambda1(x)](){ return a; };
5247 constexpr auto ten_million = 100'000'000;
5255 auto f(int& x) { return x; }
5256 decltype(auto) g(int& x) { return x; }
5261 static constexpr auto value = false;
5267 static constexpr auto value = true;
5273 auto x = 0;
11019 # (--disable-auto-import) libraries
11760 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15492 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15493 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15502 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16453 # (--disable-auto-import) libraries
24225 auto
24237 auto ac = c;
24238 auto av = v;
24239 auto sumi = ac + av + 'x';
24240 auto sumf = ac + av + 1.0;
24331 auto lambda1 = [](){};
24332 auto lambda2 = lambda1;
24340 auto a = [](int i, int j){ return i + j; }(1, 2);
24341 auto b = []() -> int { return '0'; }();
24342 auto c = [=](){ return a + b; }();
24343 auto d = [&](){ return c; }();
24344 auto e = [a, &b](int x) mutable {
24345 const auto identity = [](int y){ return y; };
24346 for (auto i = 0; i < a; ++i)
24356 const auto nullary = [](){ return 0; };
24357 const auto unary = [](int x){ return x; };
24360 const auto higher1st = [](nullary_t f){ return f(); };
24361 const auto higher2nd = [unary](nullary_t f1){
24378 static constexpr auto value = N0 + sum<N1toN...>::value;
24384 static constexpr auto value = 0;
24448 const auto lambda = [](auto&&... args){
24449 const auto istiny = [](auto x){
24463 constexpr auto ivii = 0b0000000000101010;
24475 auto length = 0UL;
24476 for (auto p = s; *p; ++p)
24494 auto x = 0;
24495 const auto lambda1 = [a = x](int b){ return a + b; };
24496 const auto lambda2 = [a = lambda1(x)](){ return a; };
24505 constexpr auto ten_million = 100'000'000;
24513 auto f(int& x) { return x; }
24514 decltype(auto) g(int& x) { return x; }
24519 static constexpr auto value = false;
24525 static constexpr auto value = true;
24531 auto x = 0;