Skip to content

pkeir/nary-swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A C++17 constexpr version of std::swap which supports zero or more arguments. The implementation is centered on the use of a fold expression. The topic is described in a blog post here.

hg clone https://github.com/pkeir/nary-swap
$CXX -std=c++17 swap.cpp
./a.out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published