On 3/18/2014 11:02 AM, Stefan Ram wrote:
> n3797 contains these some constructors in the documentation
> of basic_string, 21.4.2, two of them are:
>
> basic_string(const basic_string& str);
>
> and
>
> basic_string(const basic_string&, const Allocator&);
>
> . Ok, one has an allocator and the other has not. But then
> one can see, that one has a parameter name »str«, while in
> the other constructor declaration, the parameter has no name.
>
> Does this parameter name versus the absence of a parameter
> name convey any meaning?
To me, no. Names of arguments are optional in function declarations.
V
--
I do not respond to top-posted replies, please don't ask
> n3797 contains these some constructors in the documentation
> of basic_string, 21.4.2, two of them are:
>
> basic_string(const basic_string& str);
>
> and
>
> basic_string(const basic_string&, const Allocator&);
>
> . Ok, one has an allocator and the other has not. But then
> one can see, that one has a parameter name »str«, while in
> the other constructor declaration, the parameter has no name.
>
> Does this parameter name versus the absence of a parameter
> name convey any meaning?
To me, no. Names of arguments are optional in function declarations.
V
--
I do not respond to top-posted replies, please don't ask
Aucun commentaire:
Enregistrer un commentaire