|
|
От: | Великий Реверс | |
| Дата: | 06.02.25 23:50 | ||
| Оценка: |
|
||
#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&& ...)>]