#include <list>
#include <ldap.h>
-#include "LDAPControl.h"
+#include <LDAPControl.h>
-typedef list<LDAPCtrl> CtrlList;
+typedef std::list<LDAPCtrl> CtrlList;
/**
* This container class is used to store multiple LDAPCtrl-objects.
typedef CtrlList::const_iterator const_iterator;
public :
/**
- * Constructs an empty list
+ * Constructs an empty std::list
*/
LDAPControlSet();
*/
size_t size() const ;
+ /**
+ * @return true if there are zero LDAPCtrl-objects currently
+ * stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/
* LDAPControl-structures as needed by the C-API
*/
LDAPControl** toLDAPControlArray()const ;
-
+ static void freeLDAPControlArray(LDAPControl **ctrl);
private :
CtrlList data;
} ;