Question: HI, is it possible to make a function that receive as parameter a share pointer. Could you helps me like vector(ObjectX) myFunctionName ( sharePTR ptr1
HI,
is it possible to make a function that receive as parameter a share pointer. Could you helps me
like
vector(ObjectX) myFunctionName (sharePTR ptr1)
[
Vector1.pushpack(sharePTR);
return vectorObjectX
]
main:
ptr = makeshared(ObjectX)(int blabla, string blabla2 ...)
result that I want
----------------------------
line0 sharePTR ptr1
----------------------------
1 sharePTR ptr1
----------------------------
2 sharePTR ptr1
----------------------------
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
