Add function2 header

From https://github.com/Naios/function2/

This provides unique_function, a move-only, type-erased function
wrapper.

I copied the file in rather than using a submodule because it's only
one file, and a submodule seems rather like killing a mosquito with an
anti-tank gun.

Chosen over the slightly more capable cxx_function because that
version fails its basic contract.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
Adam C. Emerson 2018-10-21 19:04:03 -04:00
parent b2fea9ada4
commit 4771a4cb1e
2 changed files with 1584 additions and 0 deletions

View File

@ -154,3 +154,6 @@ Files: src/ceph-volume/plugin/zfs/*
Copyright: 2018, Willem Jan Withagen
License: BSD 3-clause
Files: src/include/function2.hpp
Copyright: 2015-2018, Denis Blank
License: Boost Software License, Version 1.0

1581
src/include/function2.hpp Normal file

File diff suppressed because it is too large Load Diff