Added a new boost/core/functor.hpp header.

The feader defines a new functor class template that can be used to wrap
raw functions into a function object class. This is useful, for example,
for integrating std::unique_ptr and unique_resource with custom deleters
implemented as raw functions (e.g. in C libraries).
This commit is contained in:
Andrey Semashev committed 2024-01-26 20:51:02 +03:00
1 parent 6f70ee87a3
commit 80e12e1116
6 files changed
+348 -1

No files matched your search

+8 -1
View File
@@ -1,12 +1,19 @@
[/
Copyright 2021 Peter Dimov
Copyright 2022-2023 Andrey Semashev
Copyright 2022-2024 Andrey Semashev
Distributed under the Boost Software License, Version 1.0.
https://boost.org/LICENSE_1_0.txt)
]
[section Revision History]
[section Changes in 1.85.0]
* Added a new [link core.functor `boost/core/functor.hpp`] header with a `functor` class template
for wrapping a raw function into a function object class.
[endsect]
[section Changes in 1.84.0]
* `boost::swap` utility function has been renamed to `boost::core::invoke_swap` to