Namespaces
Variants
Actions

Talk:cpp/locale/numpunct/truefalsename

From cppreference.com

Might just be me misreading things, but it looks like there's something a bit off in the description.

public:
string_type truename() const;
(1)
public:
string_type falsename() const;
(2)
protected:
virtual string_type do_truename() const;
(3)
protected:
virtual string_type do_falsename() const;
(4)
1-2) Public member function, calls the member function do_truename and do_falsename of the most derived class respectively.
3-4) Returns the string to be used as the representation of the boolean value true.

Shouldn't "3-4" say "values true and false", not just "value true"?

[edit] Return value

1-2) The object of type string_type to use as the representation of true. The standard specializations of std::numpunct return "true" and L"true".
3-4) The object of type string_type to use as the representation of false. The standard specializations of std::numpunct return "false" and L"false".

Aren't 1 & 3 "true" & L"true", and 2 & 4 "false" & L"false"?

173.237.102.207 09:35, 29 December 2016 (PST)

yes, correct on both counts, thanks! --Cubbi (talk) 09:55, 29 December 2016 (PST)