From 60f92b5b5e32769e1e4fac8169f68f1ddbb8412a Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Wed, 13 Mar 2019 21:10:14 +0100 Subject: [PATCH] fix documentation of new methods in alib2std --- alib2std/src/extensions/container/ptr_array.hpp | 4 ++++ alib2std/src/extensions/container/vector.hpp | 15 +++------------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/alib2std/src/extensions/container/ptr_array.hpp b/alib2std/src/extensions/container/ptr_array.hpp index 60402c3005..0ad287dacd 100644 --- a/alib2std/src/extensions/container/ptr_array.hpp +++ b/alib2std/src/extensions/container/ptr_array.hpp @@ -536,6 +536,8 @@ public: * \brief * Setter of value in the array on position specified by iterator specified by \p pos. The value is cloned from the \p value. * + * \tparam R the actual type of constructed value + * * \param pos the iterator specifying position to set * \param value the value to place at given position * @@ -555,6 +557,8 @@ public: * \brief * Setter of value in the array on position specified by iterator specified by \p pos. The value is cloned from the \p value. * + * \tparam R the actual type of constructed value + * * \param pos the iterator specifying position to set * \param value the value to place at given position * diff --git a/alib2std/src/extensions/container/vector.hpp b/alib2std/src/extensions/container/vector.hpp index 2b768e9221..c408afb7c4 100644 --- a/alib2std/src/extensions/container/vector.hpp +++ b/alib2std/src/extensions/container/vector.hpp @@ -225,8 +225,6 @@ public: * \brief * Inserts the value on position given by iterator \p pos * - * \tparam R the actual type of value stored inside the vector - * * \param pos the position to insert at * \param value the value to insert * @@ -240,8 +238,6 @@ public: * \brief * Inserts the value on position given by iterator \p pos * - * \tparam R the actual type of value stored inside the vector - * * \param pos the position to insert at * \param value the value to insert * @@ -255,8 +251,6 @@ public: * \brief * Inserts the \p count copies of value on position given by iterator \p pos * - * \tparam R the actual type of value stored inside the vector - * * \param pos the position to insert at * \param count the number of copies to insert * \param value the value to insert @@ -287,8 +281,6 @@ public: * \brief * Inserts the values from the given initializer list to positions starting at given iterator \p pos * - * \tparam R the types stored inside the initializer list - * * \param pos the position to insert at * \param ilist the initializer list * @@ -307,15 +299,14 @@ public: * \brief * Inserts a new value to the container at position given by parameter \p pos. The new value is constructed inside the method from constructor parameters. * - * \tparam R the actual type of value stored inside the vector - * \tparam Args ... the types of arguments of the R constructor + * \tparam Args ... the types of arguments of the T constructor * * \param pos the position to set - * \param args ... the arguments of the R constructor + * \param args ... the arguments of the T constructor * * \return updated iterator to the newly inserted value */ - template < class R = T, class ... Args > + template < class ... Args > reverse_iterator emplace ( const_reverse_iterator pos, Args && ... args ) { return reverse_iterator ( std::next ( emplace ( pos.base ( ), std::forward < Args > ( args ) ... ) ) ); } -- GitLab