Lines Matching refs:auto

254     auto
266 auto ac = c;
267 auto av = v;
268 auto sumi = ac + av + 'x';
269 auto sumf = ac + av + 1.0;
360 auto lambda1 = [](){};
361 auto lambda2 = lambda1;
369 auto a = [](int i, int j){ return i + j; }(1, 2);
370 auto b = []() -> int { return '0'; }();
371 auto c = [=](){ return a + b; }();
372 auto d = [&](){ return c; }();
373 auto e = [a, &b](int x) mutable {
374 const auto identity = [](int y){ return y; };
375 for (auto i = 0; i < a; ++i)
385 const auto nullary = [](){ return 0; };
386 const auto unary = [](int x){ return x; };
389 const auto higher1st = [](nullary_t f){ return f(); };
390 const auto higher2nd = [unary](nullary_t f1){
407 static constexpr auto value = N0 + sum<N1toN...>::value;
413 static constexpr auto value = 0;
481 const auto lambda = [](auto&&... args){
482 const auto istiny = [](auto x){
496 constexpr auto ivii = 0b0000000000101010;
508 auto length = 0UL;
509 for (auto p = s; *p; ++p)
527 auto x = 0;
528 const auto lambda1 = [a = x](int b){ return a + b; };
529 const auto lambda2 = [a = lambda1(x)](){ return a; };
538 constexpr auto ten_million = 100'000'000;
546 auto f(int& x) { return x; }
547 decltype(auto) g(int& x) { return x; }
552 static constexpr auto value = false;
558 static constexpr auto value = true;
564 auto x = 0;
654 auto foo = {5};
655 auto bar {5};
678 [[maybe_unused]] auto unused = f1();
775 for (auto i : r)
777 [[maybe_unused]] auto v = i;
838 if (auto i = f(); i > 0)
843 switch (auto i = f(); i + 4)
875 [[maybe_unused]] auto p = pair{13, 42u};
884 template <auto n>
902 auto f1() -> int(&)[2]
907 auto f2() -> std::pair<int, int>&
923 auto [ x1, y1 ] = f1();
924 auto& [ xr1, yr1 ] = f1();
925 auto [ x2, y2 ] = f2();
926 auto& [ xr2, yr2 ] = f2();
927 const auto [ x3, y3 ] = f3();