#include <string>
#include <list>
-typedef list<string> ListType;
+typedef std::list<std::string> ListType;
/**
- * Container class to store multiple string-objects
+ * Container class to store multiple std::string-objects
*/
class StringList{
private:
typedef ListType::const_iterator const_iterator;
/**
- * Constructs an empty list.
+ * Constructs an empty std::list.
*/
StringList();
* For internal use only
*
* This constructor is used by the library internally to create a
- * list of string from a array for c-Strings (char*)thar was
+ * std::list of std::string from a array for c-Strings (char*)thar was
* returned by the C-API
*/
StringList(char** values);
* Adds one element to the end of the list.
* @param attr The attribute to add to the list.
*/
- void add(const string& value);
+ void add(const std::string& value);
/**
* @return The number of strings that are currently
*/
size_t size() const;
+ /**
+ * @return true if there are zero strings currently
+ * stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/