Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
std::string repeat_n(int n, std::string const& s)
log_named_trace( // Print the log message
get_logger(), // inside the logger (like std::cout), with:
log_prefix("repeat_n"), // - the function name as prefix
hana::make_tuple("n", "s"), // - the arguments' names
n, s); // - the arguments' values
return ...; // Implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment