Hi When does we use pointer to something in return type as signature instead of the type it self ? func function () *T Instead Func function () T What is the benefit ?
hello 🙌🏻 i have a question why such thing is allowed in c++ ? (calling method on a temporary object) struct myStruct { void method(){} }; int main() { myStruct{}.met...
Im in conflict nowadays about reference types in golang Previously i ask about when to use pointer to a value type in argument and function return type Now my question is that...
#include <iostream> using namespace std; struct complexCls { float real,imag; complexCls(float real = 0,float imag =0) : real{real},imag{imag}{} comple...
hi, i have a question but not focused on c++ only its more about writing software with c++ how should we design our program and think about architecture, folders structure, ...
hello everybody how can i call copy constructor of a class with rvalue given in the argument ? i mean it will show the effect const reference impact