├── .artwork └── cover.png ├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── 02.01-templateParameters0 ├── CMakeLists.txt └── main.cpp ├── 02.02-nttpNameMangling0 ├── CMakeLists.txt └── main.cpp ├── 03.01-typenameVsClass0 ├── CMakeLists.txt └── main.cpp ├── 04.01-variadicTemplateMultiMin0 ├── CMakeLists.txt └── main.cpp ├── 04.02-variadicTemplateMultiMin1 ├── CMakeLists.txt └── main.cpp ├── 05.01-minMaxTypeSafe0 ├── CMakeLists.txt └── main.cpp ├── 05.02-minMaxTypeSafe0Insights ├── CMakeLists.txt └── main.cpp ├── 05.03-minMaxTypeSafe1 ├── CMakeLists.txt └── main.cpp ├── 05.04-minMaxTypeSafe2 ├── CMakeLists.txt └── main.cpp ├── 05.05-minMaxTypeSafe0Insights1 ├── CMakeLists.txt └── main.cpp ├── 06.01-aliasTemplate0 ├── CMakeLists.txt └── main.cpp ├── 06.02-aliasTemplate1 ├── CMakeLists.txt └── main.cpp ├── 07.01-variableTemplate0 ├── CMakeLists.txt └── main.cpp ├── 07.02-variableTemplate1 ├── CMakeLists.txt └── main.cpp ├── 08.01-trailingReturnForMethodExistDetection0 ├── CMakeLists.txt └── main.cpp ├── 08.02-trailingReturnForMethodExistDetection1 ├── CMakeLists.txt └── main.cpp ├── 09.01-declVal0 ├── CMakeLists.txt └── main.cpp ├── 09.02-declVal1 ├── CMakeLists.txt └── main.cpp ├── 09.03-declVal2 ├── CMakeLists.txt └── main.cpp ├── 09.04-see-09.03-declVal2 ├── 10.01-hasFun0 ├── CMakeLists.txt └── main.cpp ├── 10.02-see-10.01-hasFun0 ├── 10.03-see-10.01-hasFun0 ├── 11.01-arrayFun0 ├── CMakeLists.txt └── main.cpp ├── 11.02-arrayFun0Insights ├── CMakeLists.txt └── main.cpp ├── 11.03-arraySize0 ├── CMakeLists.txt └── main.cpp ├── 11.04-arrayAt0 ├── CMakeLists.txt └── main.cpp ├── 11.05-stdArrayTrap0 ├── CMakeLists.txt └── main.cpp ├── 11.06-toArray0 ├── CMakeLists.txt └── main.cpp ├── 12.01-constexprIf0 ├── CMakeLists.txt └── main.cpp ├── 12.02-constexprIf1 ├── CMakeLists.txt └── main.cpp ├── 12.03-constexprIf2 ├── CMakeLists.txt └── main.cpp ├── 12.04-constexprIf3 ├── CMakeLists.txt └── main.cpp ├── 14.01-integralConstant0 ├── CMakeLists.txt └── main.cpp ├── 14.02-integralConstant1 ├── CMakeLists.txt └── main.cpp ├── 15.01-typeIdentity0 ├── CMakeLists.txt └── main.cpp ├── 15.02-typeIdentity1 ├── CMakeLists.txt └── main.cpp ├── 15.03-typeIdentity2 ├── CMakeLists.txt └── main.cpp ├── 15.04-see-15.03-typeIdentity2 ├── 15.05-see-15.03-typeIdentity2 ├── 16.01-foldExpressionsAndComma0 ├── CMakeLists.txt └── main.cpp ├── 16.02-foldExpressionsAndComma1 ├── CMakeLists.txt └── main.cpp ├── 16.03-foldExpressionsAndComma2 ├── CMakeLists.txt └── main.cpp ├── 16.04-foldExpressionsAndComma2Insights ├── CMakeLists.txt └── main.cpp ├── 17.01-strCatSimple0 ├── CMakeLists.txt └── main.cpp ├── 17.02-strCatSimple1 ├── CMakeLists.txt └── main.cpp ├── 17.03-strCatSimpleUsing0 ├── CMakeLists.txt └── main.cpp ├── 17.04-strCatSimpleInitList0 ├── CMakeLists.txt └── main.cpp ├── 18.01-fromValueToList0 ├── CMakeLists.txt └── main.cpp ├── 18.02-see-18.01-fromValueToList0 ├── 18.03-fromValueToList1 ├── CMakeLists.txt └── main.cpp ├── 18.04-see-18.03-fromValueToList1 ├── 18.05-see-18.03-fromValueToList1 ├── 19.01-fromValueToList2 ├── CMakeLists.txt └── main.cpp ├── 19.02-fromValueToList3 ├── CMakeLists.txt └── main.cpp ├── 20.01-checkIfInRangeMotivation ├── CMakeLists.txt └── main.cpp ├── 20.02-checkIfInRangeBetter ├── CMakeLists.txt └── main.cpp ├── 20.03-structIsPlainBody ├── CMakeLists.txt └── main.cpp ├── 20.04-see-20.02-checkIfInRangeBetter ├── 20.05-see-20.02-checkIfInRangeBetter ├── 20.06-see-20.02-checkIfInRangeBetter ├── 20.07-see-20.02-checkIfInRangeBetter ├── 20.08-see-20.02-checkIfInRangeBetter ├── 20.09-see-20.02-checkIfInRangeBetter ├── 21.01-codeBloat3 ├── CMakeLists.txt └── main.cpp ├── 21.02-codeBloat0 ├── CMakeLists.txt └── main.cpp ├── 21.03-codeBloat1 ├── CMakeLists.txt └── main.cpp ├── 21.04-codeBloat2 ├── CMakeLists.txt └── main.cpp ├── 21.05-see-21.04-codeBloat2 ├── 22.01-whereToPutTheEnableIf0 ├── CMakeLists.txt └── main.cpp ├── 22.02-whereToPutTheEnableIf1 ├── CMakeLists.txt └── main.cpp ├── 22.03-whereToPutTheEnableIf2 ├── CMakeLists.txt └── main.cpp ├── 23.01-disableAMemberFunction0 ├── CMakeLists.txt └── main.cpp ├── 23.02-disableAMemberFunction1 ├── CMakeLists.txt └── main.cpp ├── 23.03-disableAMemberFunction2 ├── CMakeLists.txt └── main.cpp ├── 23.04-disableAMemberFunction3 ├── CMakeLists.txt └── main.cpp ├── 24.01-disableSpecialMemberFunctions0 ├── CMakeLists.txt └── main.cpp ├── 24.02-see-24.01-disableSpecialMemberFunctions0 ├── 24.03-disableSpecialMemberFunctions1 ├── CMakeLists.txt └── main.cpp ├── 24.04-see-24.03-disableSpecialMemberFunctions1 ├── 24.05-disableSpecialMemberFunctions2 ├── CMakeLists.txt └── main.cpp ├── CMakeLists.txt ├── LICENSE.txt └── Readme.md /.artwork/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/.artwork/cover.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /02.01-templateParameters0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/02.01-templateParameters0/CMakeLists.txt -------------------------------------------------------------------------------- /02.01-templateParameters0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/02.01-templateParameters0/main.cpp -------------------------------------------------------------------------------- /02.02-nttpNameMangling0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/02.02-nttpNameMangling0/CMakeLists.txt -------------------------------------------------------------------------------- /02.02-nttpNameMangling0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/02.02-nttpNameMangling0/main.cpp -------------------------------------------------------------------------------- /03.01-typenameVsClass0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/03.01-typenameVsClass0/CMakeLists.txt -------------------------------------------------------------------------------- /03.01-typenameVsClass0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/03.01-typenameVsClass0/main.cpp -------------------------------------------------------------------------------- /04.01-variadicTemplateMultiMin0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/04.01-variadicTemplateMultiMin0/CMakeLists.txt -------------------------------------------------------------------------------- /04.01-variadicTemplateMultiMin0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/04.01-variadicTemplateMultiMin0/main.cpp -------------------------------------------------------------------------------- /04.02-variadicTemplateMultiMin1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/04.02-variadicTemplateMultiMin1/CMakeLists.txt -------------------------------------------------------------------------------- /04.02-variadicTemplateMultiMin1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/04.02-variadicTemplateMultiMin1/main.cpp -------------------------------------------------------------------------------- /05.01-minMaxTypeSafe0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.01-minMaxTypeSafe0/CMakeLists.txt -------------------------------------------------------------------------------- /05.01-minMaxTypeSafe0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.01-minMaxTypeSafe0/main.cpp -------------------------------------------------------------------------------- /05.02-minMaxTypeSafe0Insights/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.02-minMaxTypeSafe0Insights/CMakeLists.txt -------------------------------------------------------------------------------- /05.02-minMaxTypeSafe0Insights/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.02-minMaxTypeSafe0Insights/main.cpp -------------------------------------------------------------------------------- /05.03-minMaxTypeSafe1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.03-minMaxTypeSafe1/CMakeLists.txt -------------------------------------------------------------------------------- /05.03-minMaxTypeSafe1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.03-minMaxTypeSafe1/main.cpp -------------------------------------------------------------------------------- /05.04-minMaxTypeSafe2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.04-minMaxTypeSafe2/CMakeLists.txt -------------------------------------------------------------------------------- /05.04-minMaxTypeSafe2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.04-minMaxTypeSafe2/main.cpp -------------------------------------------------------------------------------- /05.05-minMaxTypeSafe0Insights1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.05-minMaxTypeSafe0Insights1/CMakeLists.txt -------------------------------------------------------------------------------- /05.05-minMaxTypeSafe0Insights1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/05.05-minMaxTypeSafe0Insights1/main.cpp -------------------------------------------------------------------------------- /06.01-aliasTemplate0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/06.01-aliasTemplate0/CMakeLists.txt -------------------------------------------------------------------------------- /06.01-aliasTemplate0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/06.01-aliasTemplate0/main.cpp -------------------------------------------------------------------------------- /06.02-aliasTemplate1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/06.02-aliasTemplate1/CMakeLists.txt -------------------------------------------------------------------------------- /06.02-aliasTemplate1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/06.02-aliasTemplate1/main.cpp -------------------------------------------------------------------------------- /07.01-variableTemplate0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/07.01-variableTemplate0/CMakeLists.txt -------------------------------------------------------------------------------- /07.01-variableTemplate0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/07.01-variableTemplate0/main.cpp -------------------------------------------------------------------------------- /07.02-variableTemplate1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/07.02-variableTemplate1/CMakeLists.txt -------------------------------------------------------------------------------- /07.02-variableTemplate1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/07.02-variableTemplate1/main.cpp -------------------------------------------------------------------------------- /08.01-trailingReturnForMethodExistDetection0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/08.01-trailingReturnForMethodExistDetection0/CMakeLists.txt -------------------------------------------------------------------------------- /08.01-trailingReturnForMethodExistDetection0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/08.01-trailingReturnForMethodExistDetection0/main.cpp -------------------------------------------------------------------------------- /08.02-trailingReturnForMethodExistDetection1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/08.02-trailingReturnForMethodExistDetection1/CMakeLists.txt -------------------------------------------------------------------------------- /08.02-trailingReturnForMethodExistDetection1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/08.02-trailingReturnForMethodExistDetection1/main.cpp -------------------------------------------------------------------------------- /09.01-declVal0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/09.01-declVal0/CMakeLists.txt -------------------------------------------------------------------------------- /09.01-declVal0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/09.01-declVal0/main.cpp -------------------------------------------------------------------------------- /09.02-declVal1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/09.02-declVal1/CMakeLists.txt -------------------------------------------------------------------------------- /09.02-declVal1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/09.02-declVal1/main.cpp -------------------------------------------------------------------------------- /09.03-declVal2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/09.03-declVal2/CMakeLists.txt -------------------------------------------------------------------------------- /09.03-declVal2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/09.03-declVal2/main.cpp -------------------------------------------------------------------------------- /09.04-see-09.03-declVal2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.01-hasFun0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/10.01-hasFun0/CMakeLists.txt -------------------------------------------------------------------------------- /10.01-hasFun0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/10.01-hasFun0/main.cpp -------------------------------------------------------------------------------- /10.02-see-10.01-hasFun0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10.03-see-10.01-hasFun0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /11.01-arrayFun0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.01-arrayFun0/CMakeLists.txt -------------------------------------------------------------------------------- /11.01-arrayFun0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.01-arrayFun0/main.cpp -------------------------------------------------------------------------------- /11.02-arrayFun0Insights/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.02-arrayFun0Insights/CMakeLists.txt -------------------------------------------------------------------------------- /11.02-arrayFun0Insights/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.02-arrayFun0Insights/main.cpp -------------------------------------------------------------------------------- /11.03-arraySize0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.03-arraySize0/CMakeLists.txt -------------------------------------------------------------------------------- /11.03-arraySize0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.03-arraySize0/main.cpp -------------------------------------------------------------------------------- /11.04-arrayAt0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.04-arrayAt0/CMakeLists.txt -------------------------------------------------------------------------------- /11.04-arrayAt0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.04-arrayAt0/main.cpp -------------------------------------------------------------------------------- /11.05-stdArrayTrap0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.05-stdArrayTrap0/CMakeLists.txt -------------------------------------------------------------------------------- /11.05-stdArrayTrap0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.05-stdArrayTrap0/main.cpp -------------------------------------------------------------------------------- /11.06-toArray0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.06-toArray0/CMakeLists.txt -------------------------------------------------------------------------------- /11.06-toArray0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/11.06-toArray0/main.cpp -------------------------------------------------------------------------------- /12.01-constexprIf0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.01-constexprIf0/CMakeLists.txt -------------------------------------------------------------------------------- /12.01-constexprIf0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.01-constexprIf0/main.cpp -------------------------------------------------------------------------------- /12.02-constexprIf1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.02-constexprIf1/CMakeLists.txt -------------------------------------------------------------------------------- /12.02-constexprIf1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.02-constexprIf1/main.cpp -------------------------------------------------------------------------------- /12.03-constexprIf2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.03-constexprIf2/CMakeLists.txt -------------------------------------------------------------------------------- /12.03-constexprIf2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.03-constexprIf2/main.cpp -------------------------------------------------------------------------------- /12.04-constexprIf3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.04-constexprIf3/CMakeLists.txt -------------------------------------------------------------------------------- /12.04-constexprIf3/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/12.04-constexprIf3/main.cpp -------------------------------------------------------------------------------- /14.01-integralConstant0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/14.01-integralConstant0/CMakeLists.txt -------------------------------------------------------------------------------- /14.01-integralConstant0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/14.01-integralConstant0/main.cpp -------------------------------------------------------------------------------- /14.02-integralConstant1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/14.02-integralConstant1/CMakeLists.txt -------------------------------------------------------------------------------- /14.02-integralConstant1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/14.02-integralConstant1/main.cpp -------------------------------------------------------------------------------- /15.01-typeIdentity0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/15.01-typeIdentity0/CMakeLists.txt -------------------------------------------------------------------------------- /15.01-typeIdentity0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/15.01-typeIdentity0/main.cpp -------------------------------------------------------------------------------- /15.02-typeIdentity1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/15.02-typeIdentity1/CMakeLists.txt -------------------------------------------------------------------------------- /15.02-typeIdentity1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/15.02-typeIdentity1/main.cpp -------------------------------------------------------------------------------- /15.03-typeIdentity2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/15.03-typeIdentity2/CMakeLists.txt -------------------------------------------------------------------------------- /15.03-typeIdentity2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/15.03-typeIdentity2/main.cpp -------------------------------------------------------------------------------- /15.04-see-15.03-typeIdentity2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /15.05-see-15.03-typeIdentity2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /16.01-foldExpressionsAndComma0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.01-foldExpressionsAndComma0/CMakeLists.txt -------------------------------------------------------------------------------- /16.01-foldExpressionsAndComma0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.01-foldExpressionsAndComma0/main.cpp -------------------------------------------------------------------------------- /16.02-foldExpressionsAndComma1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.02-foldExpressionsAndComma1/CMakeLists.txt -------------------------------------------------------------------------------- /16.02-foldExpressionsAndComma1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.02-foldExpressionsAndComma1/main.cpp -------------------------------------------------------------------------------- /16.03-foldExpressionsAndComma2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.03-foldExpressionsAndComma2/CMakeLists.txt -------------------------------------------------------------------------------- /16.03-foldExpressionsAndComma2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.03-foldExpressionsAndComma2/main.cpp -------------------------------------------------------------------------------- /16.04-foldExpressionsAndComma2Insights/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.04-foldExpressionsAndComma2Insights/CMakeLists.txt -------------------------------------------------------------------------------- /16.04-foldExpressionsAndComma2Insights/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/16.04-foldExpressionsAndComma2Insights/main.cpp -------------------------------------------------------------------------------- /17.01-strCatSimple0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.01-strCatSimple0/CMakeLists.txt -------------------------------------------------------------------------------- /17.01-strCatSimple0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.01-strCatSimple0/main.cpp -------------------------------------------------------------------------------- /17.02-strCatSimple1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.02-strCatSimple1/CMakeLists.txt -------------------------------------------------------------------------------- /17.02-strCatSimple1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.02-strCatSimple1/main.cpp -------------------------------------------------------------------------------- /17.03-strCatSimpleUsing0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.03-strCatSimpleUsing0/CMakeLists.txt -------------------------------------------------------------------------------- /17.03-strCatSimpleUsing0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.03-strCatSimpleUsing0/main.cpp -------------------------------------------------------------------------------- /17.04-strCatSimpleInitList0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.04-strCatSimpleInitList0/CMakeLists.txt -------------------------------------------------------------------------------- /17.04-strCatSimpleInitList0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/17.04-strCatSimpleInitList0/main.cpp -------------------------------------------------------------------------------- /18.01-fromValueToList0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/18.01-fromValueToList0/CMakeLists.txt -------------------------------------------------------------------------------- /18.01-fromValueToList0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/18.01-fromValueToList0/main.cpp -------------------------------------------------------------------------------- /18.02-see-18.01-fromValueToList0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /18.03-fromValueToList1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/18.03-fromValueToList1/CMakeLists.txt -------------------------------------------------------------------------------- /18.03-fromValueToList1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/18.03-fromValueToList1/main.cpp -------------------------------------------------------------------------------- /18.04-see-18.03-fromValueToList1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /18.05-see-18.03-fromValueToList1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /19.01-fromValueToList2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/19.01-fromValueToList2/CMakeLists.txt -------------------------------------------------------------------------------- /19.01-fromValueToList2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/19.01-fromValueToList2/main.cpp -------------------------------------------------------------------------------- /19.02-fromValueToList3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/19.02-fromValueToList3/CMakeLists.txt -------------------------------------------------------------------------------- /19.02-fromValueToList3/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/19.02-fromValueToList3/main.cpp -------------------------------------------------------------------------------- /20.01-checkIfInRangeMotivation/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/20.01-checkIfInRangeMotivation/CMakeLists.txt -------------------------------------------------------------------------------- /20.01-checkIfInRangeMotivation/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/20.01-checkIfInRangeMotivation/main.cpp -------------------------------------------------------------------------------- /20.02-checkIfInRangeBetter/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/20.02-checkIfInRangeBetter/CMakeLists.txt -------------------------------------------------------------------------------- /20.02-checkIfInRangeBetter/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/20.02-checkIfInRangeBetter/main.cpp -------------------------------------------------------------------------------- /20.03-structIsPlainBody/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/20.03-structIsPlainBody/CMakeLists.txt -------------------------------------------------------------------------------- /20.03-structIsPlainBody/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/20.03-structIsPlainBody/main.cpp -------------------------------------------------------------------------------- /20.04-see-20.02-checkIfInRangeBetter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20.05-see-20.02-checkIfInRangeBetter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20.06-see-20.02-checkIfInRangeBetter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20.07-see-20.02-checkIfInRangeBetter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20.08-see-20.02-checkIfInRangeBetter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20.09-see-20.02-checkIfInRangeBetter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /21.01-codeBloat3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.01-codeBloat3/CMakeLists.txt -------------------------------------------------------------------------------- /21.01-codeBloat3/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.01-codeBloat3/main.cpp -------------------------------------------------------------------------------- /21.02-codeBloat0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.02-codeBloat0/CMakeLists.txt -------------------------------------------------------------------------------- /21.02-codeBloat0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.02-codeBloat0/main.cpp -------------------------------------------------------------------------------- /21.03-codeBloat1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.03-codeBloat1/CMakeLists.txt -------------------------------------------------------------------------------- /21.03-codeBloat1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.03-codeBloat1/main.cpp -------------------------------------------------------------------------------- /21.04-codeBloat2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.04-codeBloat2/CMakeLists.txt -------------------------------------------------------------------------------- /21.04-codeBloat2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/21.04-codeBloat2/main.cpp -------------------------------------------------------------------------------- /21.05-see-21.04-codeBloat2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /22.01-whereToPutTheEnableIf0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/22.01-whereToPutTheEnableIf0/CMakeLists.txt -------------------------------------------------------------------------------- /22.01-whereToPutTheEnableIf0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/22.01-whereToPutTheEnableIf0/main.cpp -------------------------------------------------------------------------------- /22.02-whereToPutTheEnableIf1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/22.02-whereToPutTheEnableIf1/CMakeLists.txt -------------------------------------------------------------------------------- /22.02-whereToPutTheEnableIf1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/22.02-whereToPutTheEnableIf1/main.cpp -------------------------------------------------------------------------------- /22.03-whereToPutTheEnableIf2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/22.03-whereToPutTheEnableIf2/CMakeLists.txt -------------------------------------------------------------------------------- /22.03-whereToPutTheEnableIf2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/22.03-whereToPutTheEnableIf2/main.cpp -------------------------------------------------------------------------------- /23.01-disableAMemberFunction0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.01-disableAMemberFunction0/CMakeLists.txt -------------------------------------------------------------------------------- /23.01-disableAMemberFunction0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.01-disableAMemberFunction0/main.cpp -------------------------------------------------------------------------------- /23.02-disableAMemberFunction1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.02-disableAMemberFunction1/CMakeLists.txt -------------------------------------------------------------------------------- /23.02-disableAMemberFunction1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.02-disableAMemberFunction1/main.cpp -------------------------------------------------------------------------------- /23.03-disableAMemberFunction2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.03-disableAMemberFunction2/CMakeLists.txt -------------------------------------------------------------------------------- /23.03-disableAMemberFunction2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.03-disableAMemberFunction2/main.cpp -------------------------------------------------------------------------------- /23.04-disableAMemberFunction3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.04-disableAMemberFunction3/CMakeLists.txt -------------------------------------------------------------------------------- /23.04-disableAMemberFunction3/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/23.04-disableAMemberFunction3/main.cpp -------------------------------------------------------------------------------- /24.01-disableSpecialMemberFunctions0/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/24.01-disableSpecialMemberFunctions0/CMakeLists.txt -------------------------------------------------------------------------------- /24.01-disableSpecialMemberFunctions0/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/24.01-disableSpecialMemberFunctions0/main.cpp -------------------------------------------------------------------------------- /24.02-see-24.01-disableSpecialMemberFunctions0: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /24.03-disableSpecialMemberFunctions1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/24.03-disableSpecialMemberFunctions1/CMakeLists.txt -------------------------------------------------------------------------------- /24.03-disableSpecialMemberFunctions1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/24.03-disableSpecialMemberFunctions1/main.cpp -------------------------------------------------------------------------------- /24.04-see-24.03-disableSpecialMemberFunctions1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /24.05-disableSpecialMemberFunctions2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/24.05-disableSpecialMemberFunctions2/CMakeLists.txt -------------------------------------------------------------------------------- /24.05-disableSpecialMemberFunctions2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/24.05-disableSpecialMemberFunctions2/main.cpp -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreasfertig/notebookcpp-tips-and-tricks-with-templates/HEAD/Readme.md --------------------------------------------------------------------------------