[gtkmm] Glib::ustring::raw() -- clarification
- From: Daniel Elstner <daniel elstner gmx net>
- To: gtkmm-list gnome org
- Subject: [gtkmm] Glib::ustring::raw() -- clarification
- Date: 05 Sep 2002 19:45:05 +0200
Hi,
the whole purpose of raw() is to provide an explicit way of conversion
to std::string. Thus,
Glib::ustring ustr;
std::string str = ustr;
is almost the same as
Glib::ustring ustr;
std::string str = ustr.raw();
raw() is sometimes useful to (a) resolve overloading ambiguities, (b) to
clarify code and (c) when performance matters (unlike operator
std::string(), raw() returns a const reference to the ustring's internal
data).
Cheers,
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]