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 functiondo_truename
anddo_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 typestring_type
to use as the representation of true. The standard specializations ofstd::numpunct
return "true" and L"true".3-4) The object of typestring_type
to use as the representation of false. The standard specializations ofstd::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)