In this tutorial we learn how the RVec class can be used to adopt existing memory or allocate some.
public:
};
void vo001_AdoptOrOwnMemory()
{
std::cout <<
v.data() <<
" and " <<
v2.data() << std::endl;
std::cout <<
v.data() <<
" and " <<
v2.data() << std::endl;
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A "std::vector"-like collection of values implementing handy operation to analyse them.
0x7fffab802aa0 and 0x7fffab802aa0
0x7fffab802aa0 and 0x4ed2970
- Date
- May 2018
- Author
- Danilo Piparo
Definition in file vo001_AdoptOrOwnMemory.C.