- Unwinding concept std::same_as up to std::integral_constant. Compilation of possible implementations from cppreference. Hope seeing it all together at once helps appreciate the behind-the-scenes. PS: read the code bottom to top; usable with no includes sigcpp.godbolt.org/z/nx6Y3sfvo #cpp #eduSkyMay 31, 2024 19:49
- Possible implementation of std::same_as on cppreference defines the Same_Helper in a detail namespace, but that is flattened here☝️ for simplicity. Again, the code is compiled from cppreference. No claim made on it being best way to implement the concept/traits. en.cppreference.com/w/cpp/concep...