+// $OpenLDAP$
/*
- * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include <string>
#include <list>
-typedef list<string> ListType;
-
/**
* Container class to store multiple string-objects
*/
class StringList{
- typedef ListType::const_iterator const_iterator;
-
+ typedef std::list<std::string> ListType;
+
private:
ListType m_data;
public:
+ typedef ListType::const_iterator const_iterator;
+
/**
* Constructs an empty list.
*/
* 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.
*/