Re: An example of Glib::ArrayHandle
- From: "Milosz Derezynski" <internalerror gmail com>
- To: "Paulo Flabiano Smorigo" <pfsmorigo gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: An example of Glib::ArrayHandle
- Date: Thu, 28 Aug 2008 21:13:20 +0200
You just pass a reversible container with an appropriate T to any function that accepts an ArrayHandle<T>, or if it's a about a return value, you use such a container with a given T for the function's return:
typedef std::vector<std::string> strv_t;
strv_t vector (3);
vector[0] = "path";
vector[1] = "fragment";
vector[2] = "example";
std::string filename = Glib::build_filename( vector );
--
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]