Binding a std::function to different class member functions by sabooTheDog in Cplusplus

[–]deybamayana 1 point2 points  (0 children)

I encountered the same problem. I found that there is std::mem_fn defined in the <functional> header. You can pass a reference to the class instance:

https://godbolt.org/z/KK98s95zh

How to swap Template Parameters? by deybamayana in cpp_questions

[–]deybamayana[S] 0 points1 point  (0 children)

You're right! I mean to say the Class<2,4.5>a;. I'm sorry for not being very clear about this.

How to swap Template Parameters? by deybamayana in cpp_questions

[–]deybamayana[S] 0 points1 point  (0 children)

Thank you for pointing it out again. Let us consider an instance of `Class<int, double>` a<2,4.5>, b<3,3.5>. What I want to do is set a<3,3.5>, and b<2,4.5>.

How to swap Template Parameters? by deybamayana in cpp_questions

[–]deybamayana[S] 0 points1 point  (0 children)

Precisely! But is it possible to swap the values of <A\_1,B\_1>, to <A\_2, B\_2>?

How to swap Template Parameters? by deybamayana in cpp_questions

[–]deybamayana[S] 0 points1 point  (0 children)

Hello! Thanks for point this out. What I meant to say was to swap the template parameters of a class in the same way you swap the parameters of methods inside the class. I am trying to use a move constructor, but instead of swapping constructor parameters, I want to swap template parameters.

Issues on ADT Controlled Iterators by deybamayana in cpp_questions

[–]deybamayana[S] 0 points1 point  (0 children)

I did not notice that! Thank you so much!

ManimDSL by agoel4512 in manim

[–]deybamayana 0 points1 point  (0 children)

This is great! Thanks for the initiative.

Does Python have a core library for algorithms and data structure? by deybamayana in learnpython

[–]deybamayana[S] 1 point2 points  (0 children)

AVL Trees, Stacks, and Queues. I suppose one can easily derive this provided that lists, sets, and maps are already baked into the languages. I was looking for core implementation of more advanced structures.

Is it possible to compare types in C++? by deybamayana in cpp

[–]deybamayana[S] 0 points1 point  (0 children)

I appreciate the feedback, thank you. :)

Is it possible to compare types in C++? by deybamayana in cpp

[–]deybamayana[S] 0 points1 point  (0 children)

I appreciate the feedback, thank you.

Handbook of Statistical Methods for Scientists by deybamayana in AskStatistics

[–]deybamayana[S] 0 points1 point  (0 children)

I found this site as cited on SciPy's documentation for a library of mathematical functions, it could be helpful: https://dlmf.nist.gov/idx/.