This file contains 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
// https://godbolt.org/z/Yob396xoT | |
// MIT License - Copyright(c) 2023 James Edward Anhalt III - https://github.com/jeaiii | |
using size_t = decltype(sizeof(0)); | |
#pragma pack(push, 1) | |
template<auto, class, size_t N> union member_at; | |
template<class T, class U, T U::* M, class B, size_t N> union member_at<M, B, N> | |
{ |
This file contains 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
// https://godbolt.org/z/s9GheEWav | |
// MIT License - Copyright(c) 2023 James Edward Anhalt III - https://github.com/jeaiii | |
#define CPP17 0 | |
#define CPP14 0 | |
#if CPP17 | |
#define AUTO_T auto | |
#else | |
#define AUTO_T unsigned long long |
This file contains 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
// MIT License | |
// https://godbolt.org/z/xdG3dYWd8 | |
using uint8_t = unsigned char; | |
using uint32_t = decltype(0xffffffff); | |
template<class...> struct each; | |
template<class T> struct each<T const*> | |
{ |
This file contains 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
/* | |
MIT License | |
Copyright(c) 2022 James Edward Anhalt III - https://github.com/jeaiii | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains 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
/* | |
MIT License | |
Copyright (c) 2020 James Edward Anhalt III - https://github.com/jeaiii | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |