Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active June 3, 2017 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/10a91d30f0eeaeb206e037bdef928b9a to your computer and use it in GitHub Desktop.
Save deque-blog/10a91d30f0eeaeb206e037bdef928b9a to your computer and use it in GitHub Desktop.
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