aboutsummaryrefslogtreecommitdiff
path: root/source/Common/YCombinator.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-03 23:30:01 -0700
committerrtk0c <[email protected]>2022-06-03 23:30:01 -0700
commit791b3f354b378769bffe623b05f1305c91b77101 (patch)
tree5409b311e6232eb4a6d3f8259b780d76b8ee1c59 /source/Common/YCombinator.hpp
parent60ccc62f4934e44ad5b905fdbcf458302b8d8a09 (diff)
Changeset: 64 [WIP] Rename directoriesmaster-switch-to-build2
Diffstat (limited to 'source/Common/YCombinator.hpp')
-rw-r--r--source/Common/YCombinator.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/source/Common/YCombinator.hpp b/source/Common/YCombinator.hpp
deleted file mode 100644
index b1d2350..0000000
--- a/source/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)...);
- }
-};