Author: wyoung
Date: Mon Oct 27 21:45:57 2008
New Revision: 2379

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2379&view=rev
Log:
Added String::empty() member, to better mimic the std::string API

Modified:
    trunk/lib/mystring.h

Modified: trunk/lib/mystring.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/mystring.h?rev=2379&r1=2378&r2=2379&view=diff
==============================================================================
--- trunk/lib/mystring.h (original)
+++ trunk/lib/mystring.h Mon Oct 27 21:45:57 2008
@@ -371,6 +371,9 @@
        /// \brief Raw access to the underlying buffer, with no C string
        /// interpretation.
        const char* data() const;
+
+       /// \brief Returns true if size() == 0
+       bool empty() const { return size() == 0; }
        
        /// \brief Return iterator pointing to one past the last character
        /// of the string.


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to