aboutsummaryrefslogtreecommitdiff
path: root/source/10-common/YCombinator.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-03 23:26:44 -0700
committerrtk0c <[email protected]>2022-06-03 23:26:44 -0700
commit60ccc62f4934e44ad5b905fdbcf458302b8d8a09 (patch)
tree02ec83cc8387abfd08bd5ee7ea4e8115f1bfb8d0 /source/10-common/YCombinator.hpp
parentc2ef7737536bf1f8c81fcfae95c0183b21c9753f (diff)
Changeset: 63 [WIP] Rename directories
Diffstat (limited to 'source/10-common/YCombinator.hpp')
-rw-r--r--source/10-common/YCombinator.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/10-common/YCombinator.hpp b/source/10-common/YCombinator.hpp
deleted file mode 100644
index b1d2350..0000000
--- a/source/10-common/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)...);
- }
-};