question about initial values
Ok, another question for the Standards weenies...
I'm pretty sure I know the answer (A) but I'm gonna ask anyways.
given...
std::vector<int *> Vec(1);
Vec is constructed using:
vector(size_type n,
value_type const & value = value_type(),
allocator_type const & allocator = allocator_type());
is the value of Vec[0] = ?
(A) undefined
(B) null/0
This is more easily phrased as "what is the value of a default constructed pointer when constructor syntax is explicitly used?"
The views expressed are those of the author and do not reflect any position taken by the Goverment of the United States of America, National Aeronautics and Space Administration (NASA), Jet Propulsion Laboratory (JPL), or California Institute of Technology (CalTech)