Skip to content

Instantly share code, notes, and snippets.

@unrays
Last active March 4, 2026 18:02
Show Gist options
  • Select an option

  • Save unrays/001b258f71994f0f9ef2a7fd364c3563 to your computer and use it in GitHub Desktop.

Select an option

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
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