UI Library Get link Facebook X Pinterest Email Other Apps April 26, 2024 small ui library and easy to use is:- microuihttps://github.com/rxi/microui Get link Facebook X Pinterest Email Other Apps Comments
Inline functions in depth August 24, 2020 Inline functions in depth #pragma inline_depth( [0... 255] ) --max-inline-insns-recursive http://www.gotw.ca/gotw/033.htm -finline-functions -fnoinline-functions https://stackoverflow.com/questions/190232/can-a-recursive-function-be-inline http://www.parashift.com/c++-faq-lite/inline-and-perf.html https://isocpp.org/ __attribute__((always_inline)) https://www.systutorials.com/gcc-may-save-you-some-recursive-functions-calls-an-analysis-of-a-function-call-stack-length-example/ Read more
Map sort 4 with array version February 27, 2025 #include <iostream> #include <vector> #include <map> #include <climits> using namespace std; void Map_sort(vector<int> &nums) { vector<int> temp; int arr[20000]; int maxElement = INT_MIN; int minElement = INT_MAX; for(int i=0; i<nums.size(); i++) { if(maxElement < nums[i]) { maxElement = nums[i]; } if(minElement > nums[i]) { minElement = nums[i]; } arr[nums[i]]++; } int j=0; for(int i=minElement; i<= maxElement; i++ ) { if (arr[i] >= 1) { ... Read more
Overloading same function signature February 29, 2024 # include <iostream> template < typename T> void foo (T...) { std :: cout << 'A' ;} template < typename ... T> void foo (T...) { std :: cout << 'B' ;} int main () { foo( 1 ); foo( 1 , 2 ); } Read more
Comments
Post a Comment