c++ Programming Glossary: boost_pp_enum
Is there a way to write make_unique() in VS2012? http://stackoverflow.com/questions/12547983/is-there-a-way-to-write-make-unique-in-vs2012 N BOOST_PP_ITERATION #define MAKE_UNIQUE_TEMPLATE_PARMS BOOST_PP_ENUM_PARAMS N typename A #define MAKE_UNIQUE_FUNCTION_PARM J I D.. A I BOOST_PP_CAT a I #define MAKE_UNIQUE_FUNCTION_PARMS BOOST_PP_ENUM N MAKE_UNIQUE_FUNCTION_PARM BOOST_PP_EMPTY #define MAKE_UNIQUE_ARG.. BOOST_PP_CAT A I BOOST_PP_CAT a I #define MAKE_UNIQUE_ARGS BOOST_PP_ENUM N MAKE_UNIQUE_ARG BOOST_PP_EMPTY template class T BOOST_PP_COMMA_IF..
Any metaprogramming way to generate overloads for various numbers of template parameters? http://stackoverflow.com/questions/5475046/any-metaprogramming-way-to-generate-overloads-for-various-numbers-of-template-pa header no include guard #define FOO_TEMPLATE_PARAMS BOOST_PP_ENUM_PARAMS FOO_NUM_ARGS class T #define FOO_PARAM J I D BOOST_PP_CAT.. J I D BOOST_PP_CAT T I BOOST_PP_CAT a I #define FOO_PARAMS BOOST_PP_ENUM FOO_NUM_ARGS FOO_PARAM BOOST_PP_EMTPY #if FOO_NUM_ARGS 0 #define.. with FOO_NUM_ARGS 1 #define FOO_TEMPLAtE_PARAMS class T0 BOOST_PP_ENUM is like a little for loop #define FOO_PARAMS T0 a0 #define FOO_TEMPLATE..
Trick : filling array values using macros (code generation) http://stackoverflow.com/questions/6080129/trick-filling-array-values-using-macros-code-generation enum.hpp #define ORDER z n text n int main int const a BOOST_PP_ENUM 100 ORDER ~ std size_t const n sizeof a sizeof int std cout.. this work First I can only recommend the doc entry for BOOST_PP_ENUM BOOST_PP_ENUM is a macro which takes 3 arguments n MACRO data.. First I can only recommend the doc entry for BOOST_PP_ENUM BOOST_PP_ENUM is a macro which takes 3 arguments n MACRO data n an integer..
|