From 4872931d2946fade9ef7d8699b50f5eb394d44c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 5 Jan 2014 22:25:12 +0100 Subject: [PATCH] Documented template parameters. --- include/boost/container/deque.hpp | 11 +++++------ include/boost/container/list.hpp | 3 +++ include/boost/container/slist.hpp | 3 +++ include/boost/container/stable_vector.hpp | 3 +++ include/boost/container/string.hpp | 4 ++++ include/boost/container/vector.hpp | 5 +++-- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/include/boost/container/deque.hpp b/include/boost/container/deque.hpp index d3ee484..4fd2e7c 100644 --- a/include/boost/container/deque.hpp +++ b/include/boost/container/deque.hpp @@ -46,11 +46,7 @@ namespace boost { namespace container { #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED -#ifdef BOOST_CONTAINER_DOXYGEN_INVOKED -template > -#else template -#endif class deque; template @@ -467,9 +463,12 @@ class deque_base }; #endif //#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED -//! Deque class -//! #ifdef BOOST_CONTAINER_DOXYGEN_INVOKED +//! A double-ended queue is a sequence that supports random access to elements, constant time insertion +//! and removal of elements at the end of the sequence, and linear time insertion and removal of elements in the middle. +//! +//! \tparam T The type of object that is stored in the deque +//! \tparam Allocator The allocator used for all internal memory management template > #else template diff --git a/include/boost/container/list.hpp b/include/boost/container/list.hpp index e6c3155..479c49a 100644 --- a/include/boost/container/list.hpp +++ b/include/boost/container/list.hpp @@ -111,6 +111,9 @@ struct intrusive_list_type //! after a list operation than it did before), but the iterators themselves will //! not be invalidated or made to point to different elements unless that invalidation //! or mutation is explicit. +//! +//! \tparam T The type of object that is stored in the list +//! \tparam Allocator The allocator used for all internal memory management #ifdef BOOST_CONTAINER_DOXYGEN_INVOKED template > #else diff --git a/include/boost/container/slist.hpp b/include/boost/container/slist.hpp index 290dfc5..eede912 100644 --- a/include/boost/container/slist.hpp +++ b/include/boost/container/slist.hpp @@ -140,6 +140,9 @@ struct intrusive_slist_type //! possible. If you find that insert_after and erase_after aren't adequate for your //! needs, and that you often need to use insert and erase in the middle of the list, //! then you should probably use list instead of slist. +//! +//! \tparam T The type of object that is stored in the list +//! \tparam Allocator The allocator used for all internal memory management #ifdef BOOST_CONTAINER_DOXYGEN_INVOKED template > #else diff --git a/include/boost/container/stable_vector.hpp b/include/boost/container/stable_vector.hpp index adcb979..aef7bbc 100644 --- a/include/boost/container/stable_vector.hpp +++ b/include/boost/container/stable_vector.hpp @@ -426,6 +426,9 @@ struct index_traits //! //! Exception safety: As stable_vector does not internally copy elements around, some //! operations provide stronger exception safety guarantees than in std::vector. +//! +//! \tparam T The type of object that is stored in the stable_vector +//! \tparam Allocator The allocator used for all internal memory management #ifdef BOOST_CONTAINER_DOXYGEN_INVOKED template > #else diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index 715f169..190c12f 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -468,6 +468,10 @@ class basic_string_base //! end(), rbegin(), rend(), operator[], c_str(), and data() do not invalidate iterators. //! In this implementation, iterators are only invalidated by member functions that //! explicitly change the string's contents. +//! +//! \tparam CharT The type of character it contains. +//! \tparam Traits The Character Traits type, which encapsulates basic character operations +//! \tparam Allocator The allocator, used for internal memory management. #ifdef BOOST_CONTAINER_DOXYGEN_INVOKED template , class Allocator = std::allocator > #else diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index 86ba488..f4da906 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -527,8 +527,9 @@ struct vector_alloc_holder > #else