Skip to content

Instantly share code, notes, and snippets.

@NTG-TPL
NTG-TPL / print_like_python_in_C++.cpp
Last active July 11, 2023 10:57 — forked from ilebedie/python_like_print.hpp
python "print" in c++
#include <iostream>
using namespace std;
namespace detail {
template <typename T, typename... Tail>
void print_impl(const T& t, const Tail&... tail) {
using namespace std::literals;
std::cout << t;
(..., (std::cout << " "sv << tail));