Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /include/stxxl/bits/containers/map.h [6d5df3] .. [03e621] Maximize Restore

  Switch to side-by-side view

--- a/include/stxxl/bits/containers/map.h
+++ b/include/stxxl/bits/containers/map.h
@@ -107,6 +107,9 @@
     typedef std::reverse_iterator<iterator> reverse_iterator;
     typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
 
+    //! \name Iterators
+    //! \{
+
     iterator begin() { return Impl.begin(); }
     iterator end() { return Impl.end(); }
     const_iterator begin() const { return Impl.begin(); }
@@ -139,11 +142,27 @@
         return const_reverse_iterator(begin());
     }
 
+    //! \}
+
+    //! \name Capacity
+    //! \{
+
     size_type size() const { return Impl.size(); }
     size_type max_size() const { return Impl.max_size(); }
     bool empty() const { return Impl.empty(); }
+
+    //! \}
+
+    //! \name Observers
+    //! \{
+
     key_compare key_comp() const { return Impl.key_comp(); }
     value_compare value_comp() const { return Impl.value_comp(); }
+
+    //! \}
+
+    //! \name Constructors/Destructors
+    //! \{
 
     //! A constructor
     //! \param node_cache_size_in_bytes size of node cache in bytes (btree implementation)
@@ -207,6 +226,11 @@
                  range_sorted, node_fill_factor, leaf_fill_factor)
     { }
 
+    //! \}
+
+    //! \name Modifiers
+    //! \{
+
     void swap(map& obj) { std::swap(Impl, obj.Impl); }
     std::pair<iterator, bool> insert(const value_type& x)
     {
@@ -237,6 +261,12 @@
     {
         Impl.clear();
     }
+
+    //! \}
+
+    //! \name Operations
+    //! \{
+
     iterator find(const key_type& k)
     {
         return Impl.find(k);
@@ -273,10 +303,21 @@
     {
         return Impl.equal_range(k);
     }
+
+    //! \}
+
+    //! \name Operators
+    //! \{
+
     data_type& operator [] (const key_type& k)
     {
         return Impl[k];
     }
+
+    //! \}
+
+    //! \name Miscellaneous
+    //! \{
 
     //! Enables leaf prefetching during scanning
     void enable_prefetching()
@@ -307,6 +348,8 @@
     {
         Impl.reset_statistics();
     }
+
+    //! \}
 
     //////////////////////////////////////////////////
     template <class KeyType_,