Commit ad2a4e2b by Stephan Buys Committed by Phil Edwards

stl_map.h: Tweak doxygen markup.

2002-02-07  Stephan Buys  <sbproxy@icon.co.za>

	* include/bits/stl_map.h:  Tweak doxygen markup.
	* include/bits/stl_multimap.h:  Doxygenate and remove extra spaces.
	* include/bits/stl_vector.h:  Likewise.

From-SVN: r49602
parent 07814743
2002-02-07 Stephan Buys <sbproxy@icon.co.za>
* include/bits/stl_map.h: Tweak doxygen markup.
* include/bits/stl_multimap.h: Doxygenate and remove extra spaces.
* include/bits/stl_vector.h: Likewise.
2002-02-07 Benjamin Kosnik <bkoz@redhat.com> 2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/5286 libstdc++/5286
...@@ -75,7 +81,7 @@ ...@@ -75,7 +81,7 @@
* docs/doxygen/run_doxygen: Adjust for new mainpage. * docs/doxygen/run_doxygen: Adjust for new mainpage.
* docs/doxygen/user.cfg.in: Likewise. * docs/doxygen/user.cfg.in: Likewise.
2002-02-04 Stephan Buys <s.buys@icon.co.za> 2002-02-04 Stephan Buys <sbproxy@icon.co.za>
* include/bits/stl_map.h: Initial doxygen markup. * include/bits/stl_map.h: Initial doxygen markup.
* include/std/std_fstream.h: Initial doxygen markup. * include/std/std_fstream.h: Initial doxygen markup.
......
...@@ -212,6 +212,7 @@ public: ...@@ -212,6 +212,7 @@ public:
/** /**
* @brief Subscript ( [] ) access to map data. * @brief Subscript ( [] ) access to map data.
* @param k The key for which data should be retrieved. * @param k The key for which data should be retrieved.
*
* Allows for easy lookup with the subscript ( [] ) operator. Returns the * Allows for easy lookup with the subscript ( [] ) operator. Returns the
* data associated with the key specified in subscript. If the key does * data associated with the key specified in subscript. If the key does
* not exist a pair with that key is created with a default value, which * not exist a pair with that key is created with a default value, which
...@@ -278,19 +279,20 @@ public: ...@@ -278,19 +279,20 @@ public:
* This function erases an element, pointed to by the given iterator, from * This function erases an element, pointed to by the given iterator, from
* a map. Note that this function only erases the element, and that if * a map. Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. That is the user's responsibilty. * in any way. Managing the pointer is the user's responsibilty.
*/ */
void erase(iterator __position) { _M_t.erase(__position); } void erase(iterator __position) { _M_t.erase(__position); }
/** /**
* @brief Erases an element according to the provided key. * @brief Erases an element according to the provided key.
* @param x Key of element to be erased. * @param x Key of element to be erased.
* @return Doc me! * @return Doc me! (Number of elements that match key? Only makes sense
* with multimap)
* *
* This function erases an element, located by the given key, from a map. * This function erases an element, located by the given key, from a map.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. That is the user's responsibilty. * in any way. Managing the pointer is the user's responsibilty.
*/ */
size_type erase(const key_type& __x) { return _M_t.erase(__x); } size_type erase(const key_type& __x) { return _M_t.erase(__x); }
...@@ -302,12 +304,16 @@ public: ...@@ -302,12 +304,16 @@ public:
* This function erases a sequence of elements from a map. * This function erases a sequence of elements from a map.
* Note that this function only erases the element, and that if * Note that this function only erases the element, and that if
* the element is itself a pointer, the pointed-to memory is not touched * the element is itself a pointer, the pointed-to memory is not touched
* in any way. That is the user's responsibilty. * in any way. Managing the pointer is the user's responsibilty.
*/ */
void erase(iterator __first, iterator __last) void erase(iterator __first, iterator __last)
{ _M_t.erase(__first, __last); } { _M_t.erase(__first, __last); }
/** Erases all elements in a map. */ /** Erases all elements in a map. Note that this function only erases
* the elements, and that if the elements themselves are pointers, the
* pointed-to memory is not touched in any way. Managing the pointer is
* the user's responsibilty.
*/
void clear() { _M_t.clear(); } void clear() { _M_t.clear(); }
// map operations: // map operations:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment