![]() |
От: |
rg45
|
|
Дата: | 07.02.25 10:13 | ||
Оценка: |
ВР>#include <iostream>
ВР>#include <vector>
ВР>template<typename T>
ВР>static constexpr auto get_type()
ВР>{
ВР> return std::string(__PRETTY_FUNCTION__);
ВР>}
ВР>int main()
ВР>{
ВР> auto f = [](int, std::vector<int>&&, const std::string&, std::ranges::range auto&&, auto, const auto&, auto&&...){};
ВР> using F = decltype(f);
ВР> std::cout << get_type<F>() << std::endl;
ВР>}
ВР>
ВР>constexpr auto get_type() [with T = main()::<lambda(int, std::vector<int>&&, const std::string&, auto:6&&, auto:7, const auto:8&, auto:9&& ...)>]