S
subramanian100in
In the standard library vector, the ctor
explicit vector::vector(size_type __n)
is declared as explicit. I am unable to get
the reason for it being declared as explicit.
Kindly clarify with an example.
Does the standard require that this ctor should be
declared explicit ?
Also, please let me know if there are any guidelines
for identifying which 'one argument ctors' need to be
declared as explicit.
Thanks
V.Subramanian
explicit vector::vector(size_type __n)
is declared as explicit. I am unable to get
the reason for it being declared as explicit.
Kindly clarify with an example.
Does the standard require that this ctor should be
declared explicit ?
Also, please let me know if there are any guidelines
for identifying which 'one argument ctors' need to be
declared as explicit.
Thanks
V.Subramanian