@@ -136,8 +136,9 @@ class object_traits {
136136};
137137
138138/* *
139- * Object traits specialization for the void type. Designed to be used
140- * with C++ allocators. Can be specialized if necessary.
139+ * Object traits specialization for the void type.
140+ *
141+ * Designed to be used with C++ allocators. Can be specialized if necessary.
141142 * @ingroup allocation
142143 */
143144template <>
@@ -179,8 +180,8 @@ class object_traits<void> {
179180/* *
180181 * The allocation policy template for a given type.
181182 *
182- * Can be specialized for a given type. Designed to be used with C++ allocators.
183- * Can be specialized if necessary .
183+ * Can be specialized, if necessary, for a given type. Designed to be used
184+ * with C++ allocators .
184185 * @ingroup allocation
185186 */
186187template <typename T>
@@ -236,7 +237,8 @@ class standard_alloc_policy {
236237 *
237238 * @param[in] cnt the number of objects to allocate memory for.
238239 *
239- * @throw transaction_scope_error if called outside of a transaction.
240+ * @throw transaction_scope_error if called outside of an active
241+ * transaction.
240242 * @throw transaction_out_of_memory if there is no free memory of
241243 * requested size.
242244 * @throw transaction_alloc_error on transactional allocation failure.
@@ -273,6 +275,10 @@ class standard_alloc_policy {
273275 * intervening call to deallocate.
274276 *
275277 * @param[in] p pointer to the memory to be deallocated.
278+ *
279+ * @throw transaction_scope_error if called outside of an active
280+ * transaction.
281+ * @throw transaction_free_error on transactional free failure.
276282 */
277283 void
278284 deallocate (pointer p, size_type = 0 )
@@ -355,7 +361,11 @@ class standard_alloc_policy<void> {
355361 *
356362 * @param[in] cnt the number of bytes to be allocated.
357363 *
358- * @throw transaction_scope_error if called outside of a transaction.
364+ * @throw transaction_scope_error if called outside of an active
365+ * transaction.
366+ * @throw transaction_out_of_memory if there is no free memory of
367+ * requested size.
368+ * @throw transaction_alloc_error on transactional allocation failure.
359369 */
360370 pointer
361371 allocate (size_type cnt, const_pointer = 0 )
@@ -388,6 +398,10 @@ class standard_alloc_policy<void> {
388398 * intervening call to deallocate.
389399 *
390400 * @param[in] p pointer to the memory to be deallocated.
401+ *
402+ * @throw transaction_scope_error if called outside of an active
403+ * transaction.
404+ * @throw transaction_free_error on transactional free failure.
391405 */
392406 void
393407 deallocate (pointer p, size_type = 0 )
@@ -446,6 +460,7 @@ operator==(standard_alloc_policy<T> const &, OtherAllocator const &)
446460 * the knowledge of the pointer type, their difference type, the type of the
447461 * size of objects in this allocation model as well as memory allocation and
448462 * deallocation primitives.
463+ * @ingroup allocation
449464 */
450465template <typename T, typename Policy = standard_alloc_policy<T>,
451466 typename Traits = object_traits<T>>
0 commit comments