Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-12-21 14:41:27


Author: danieljames
Date: 2007-12-21 14:41:27 EST (Fri, 21 Dec 2007)
New Revision: 42233
URL: http://svn.boost.org/trac/boost/changeset/42233

Log:
Inline some more methods.
Text files modified:
   branches/unordered/dev/boost/unordered/detail/hash_table_impl.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: branches/unordered/dev/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- branches/unordered/dev/boost/unordered/detail/hash_table_impl.hpp (original)
+++ branches/unordered/dev/boost/unordered/detail/hash_table_impl.hpp 2007-12-21 14:41:27 EST (Fri, 21 Dec 2007)
@@ -491,12 +491,12 @@
             }
 
 #if BOOST_UNORDERED_EQUIVALENT_KEYS
- static size_type group_count(link_ptr it)
+ static inline size_type group_count(link_ptr it)
             {
                 return node_count(it, next_group(it));
             }
 #else
- static size_type group_count(link_ptr)
+ static inline size_type group_count(link_ptr)
             {
                 return 1;
             }
@@ -675,7 +675,7 @@
             // Break a ciruclar list into two, with split as the beginning
             // of the second group (if split is at the beginning then don't
             // split).
- link_ptr split_group(link_ptr split)
+ static inline link_ptr split_group(link_ptr split)
             {
                 // If split is at the beginning of the group then there's
                 // nothing to split.
@@ -695,7 +695,7 @@
                 return start;
             }
 
- void split_group(link_ptr split1, link_ptr split2)
+ static inline void split_group(link_ptr split1, link_ptr split2)
             {
                 link_ptr begin1 = split_group(split1);
                 link_ptr begin2 = split_group(split2);
@@ -707,11 +707,11 @@
                 }
             }
 #else
- void split_group(link_ptr)
+ static inline void split_group(link_ptr)
             {
             }
 
- void split_group(link_ptr, link_ptr)
+ static inline void split_group(link_ptr, link_ptr)
             {
             }
 #endif


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