aboutsummaryrefslogtreecommitdiff
path: root/source/YCombinator.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-30 15:56:29 -0700
committerrtk0c <[email protected]>2022-05-30 15:56:29 -0700
commit80afa67d2b9f1c0605696a3fd69058544fe12fe4 (patch)
tree3dfe2a6f45e4f5ca8ad534baf06d76d9c558333b /source/YCombinator.hpp
parent0d92ecfdbfc875a099d9e83714b3a2209668fca5 (diff)
parent7d8bca09b3c4bf1418e758bd3bd0d6f85672153e (diff)
Changeset: 53
Diffstat (limited to 'source/YCombinator.hpp')
-rw-r--r--source/YCombinator.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/YCombinator.hpp b/source/YCombinator.hpp
deleted file mode 100644
index b1d2350..0000000
--- a/source/YCombinator.hpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#pragma once
-
-template <class Func>
-struct YCombinator {
- // NOTE: implicit constructor allows initializing this
- Func func;
-
- template <class... Ts>
- decltype(auto) operator()(Ts&&... args) const {
- // NOTE: static_cast<Ts>(args)... is equivalent to std::forward<Ts>(args)...
- // written this way so that we don't have to include <utility>, as well as reducing template instanciations to help compile time
- return func(*this, static_cast<Ts>(args)...);
- }
-};