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
| #include "lift.hpp" | |
| constexpr auto make_array = META_LIFT(std::array, (class, int)); | |
| using array_of_5_ints = decltype(make_array.template operator()<int, 5>()); |
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
| #define PPTS_BIT_BASE 32 | |
| #define PPTS_TOKEN_l (l) | |
| #define PPTS_TOKEN_o (o) | |
| #define PPTS_TOKEN_n (n) | |
| #define PPTS_TOKEN_g (g) | |
| #define ORDER_PP_DEF_1ppts_choose_type_for_width \ | |
| ORDER_PP_FN(8fn(8N, 8print(8(_ExtInt) 8lparen 8to_lit(8mul(PPTS_BIT_BASE, 8N)) 8rparen))) |
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
| #include <type_traits | |
| #include "meta_invoke.hpp" | |
| #define ASSERT_SAME(...) static_assert(std::is_same_v<__VA_ARGS__>) | |
| struct f1 { | |
| template <class T> | |
| using f = T*; | |
| }; | |
| ASSERT_SAME(META_INVOKE((f1), int), int*); |
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
| const static struct _0 {} _0; | |
| const static struct _1 {} _1; | |
| #define G7_SPLICE(expr) __typeof__(expr) | |
| #define G7_STRUCT(...) (struct { __VA_ARGS__ } ){} | |
| #define G7_NAND(a, b) \ |
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
| #include "bf.h" | |
| #define LHS 2 | |
| #define RHS 5 | |
| PPFUCK ( | |
| (LHS, RHS), | |
| G // G ("get") is , | |
| R G // R ("right") is > | |
| ( // ( is [ |
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
| #include <boost/preprocessor/punctuation/is_begin_parens.hpp> | |
| #include <boost/preprocessor/punctuation/remove_parens.hpp> | |
| #include <boost/preprocessor/control/if.hpp> | |
| #include <boost/preprocessor/seq/for_each.hpp> | |
| #include <boost/preprocessor/seq/variadic_seq_to_seq.hpp> | |
| namespace metalambda { | |
| template <auto T> |
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
| #include <boost/mp11/map.hpp> | |
| #include <boost/mp11/list.hpp> | |
| namespace ct { | |
| using namespace boost::mp11; | |
| template <class C, C... Cs> | |
| struct nttp_string { | |
| constexpr static C data[sizeof...(Cs)] = {Cs...}; |
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
| #include <cstdlib> | |
| #include <array> | |
| #include <boost/mp11/list.hpp> | |
| #include <boost/mp11/algorithm.hpp> | |
| using namespace boost::mp11; | |
| template <class C, C... Cs> | |
| struct nttp_string {}; |
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
| #include <utility> | |
| template <std::size_t Index, class T> | |
| struct indexed_pack_element { | |
| constexpr static T element(std::integral_constant<std::size_t, Index>); | |
| }; | |
| template <class IndexSeq, class... Ts> | |
| struct pack_indices_impl; |
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
| #include <cstddef> | |
| namespace nonstd { | |
| namespace detail { | |
| template <class Tag, class Type = int, Type Start = 0, Type Step = 1> | |
| class meta_counter { | |
| template <Type N> | |
| struct flag { | |
| friend constexpr bool adl_flag (flag<N>); | |
| }; |
NewerOlder