Last active
March 4, 2026 18:02
-
-
Save unrays/001b258f71994f0f9ef2a7fd364c3563 to your computer and use it in GitHub Desktop.
I'm never going back, insanely generic and flexible implementation of a getter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| constexpr EXOTIC_NODISCARD decltype(auto) get(this auto&& self) noexcept { | |
| return std::forward<decltype(self)>(self); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment