Swapping arguments using a fold expression.
by Paul Keir
From the article:
std::swapis a binary function template which exchanges the contents of its two reference arguments. In C++20
std::swapwill likely also permit execution at compile-time. In this post we consider a version which can swap the contents of an arbitrary number of arguments using a C++17 fold-expression...