| 10 | |
| 11 | template<typename First, typename... Rest> |
| 12 | void print(First&& first, Rest&&... args) |
| 13 | { |
| 14 | std::cout << "[" << first << "]"; |
| 15 | |
| 16 | auto coutSpaceAndArg = [](const auto& arg) { std::cout << ' ' << arg; }; |
| 17 | |
| 18 | (..., coutSpaceAndArg(args)); |
| 19 | |
| 20 | std::cout << '\n'; |
| 21 | } |
| 22 | |
| 23 | template<typename T> |
| 24 | concept NotFloatingPoint = not std::is_floating_point_v<T>; |