mirror of
https://github.com/boostorg/hof.git
synced 2026-01-21 04:52:20 +00:00
8 lines
170 B
C++
8 lines
170 B
C++
#include <boost/hof/always.hpp>
|
|
#include <memory>
|
|
|
|
int main() {
|
|
auto f = boost::hof::always(std::unique_ptr<int>{new int(1)});
|
|
auto i = f(1, 2, 3);
|
|
(void)i;
|
|
} |