Boost logo

Boost-Commit :

From: chintanraoh_at_[hidden]
Date: 2008-06-16 14:10:35


Author: chintanraoh
Date: 2008-06-16 14:10:35 EDT (Mon, 16 Jun 2008)
New Revision: 46432
URL: http://svn.boost.org/trac/boost/changeset/46432

Log:
added size ()
Text files modified:
   sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/pat_key_traits.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/pat_key_traits.hpp
==============================================================================
--- sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/pat_key_traits.hpp (original)
+++ sandbox/SOC/2008/digital_searching/dsearch/boost/dsearch/pat_key_traits.hpp 2008-06-16 14:10:35 EDT (Mon, 16 Jun 2008)
@@ -23,6 +23,10 @@
                 return key.end();
         }
 
+ static inline std::size_t size(std::string const &key)
+ {
+ return key.size();
+ }
         static inline element_type get_element(const const_iterator &it)
         {
                 return static_cast<unsigned char>(*it);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk