@@ -169,14 +169,14 @@ namespace foonathan
169169
170170 // / Manually takes care of the lifetime of the per-thread \ref temporary_stack.
171171 // / The constructor will create it, if not already done, and the destructor will destroy it, if not already done.
172- // / \notes If there are multiple objects in a thread,
172+ // / \note If there are multiple objects in a thread,
173173 // / this will lead to unnecessary construction and destruction of the stack.
174174 // / It is thus adviced to create one object on the top-level function of the thread, e.g. in `main()`.
175- // / \notes If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 2`, it is not necessary to use this class,
175+ // / \note If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 2`, it is not necessary to use this class,
176176 // / the nifty counter will clean everything upon program termination.
177177 // / But it can still be used as an optimization if you have a thread that is terminated long before program exit.
178178 // / The automatic clean up will only occur much later.
179- // / \notes If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 0`, the use of this class has no effect,
179+ // / \note If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 0`, the use of this class has no effect,
180180 // / because the per-thread stack is disabled.
181181 // / \relatesalso temporary_stack
182182 class temporary_stack_initializer
@@ -186,19 +186,21 @@ namespace foonathan
186186
187187 static const struct defer_create_t
188188 {
189- defer_create_t () FOONATHAN_NOEXCEPT {}
189+ defer_create_t () FOONATHAN_NOEXCEPT
190+ {
191+ }
190192 } defer_create;
191193
192194 // / \effects Does not create the per-thread stack.
193195 // / It will be created by the first call to \ref get_temporary_stack() in the current thread.
194- // / \notes If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 0`, this function has no effect.
196+ // / \note If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 0`, this function has no effect.
195197 temporary_stack_initializer (defer_create_t ) FOONATHAN_NOEXCEPT
196198 {
197199 }
198200
199201 // / \effects Creates the per-thread stack with the given default size if it wasn't already created.
200202 // / \requires `initial_size` must not be `0` if `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE != 0`.
201- // / \notes If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 0`, this function will issue a warning in debug mode.
203+ // / \note If `FOONATHAN_MEMORY_TEMPORARY_STACK_MODE == 0`, this function will issue a warning in debug mode.
202204 // / This can be disabled by passing `0` as the initial size.
203205 temporary_stack_initializer (std::size_t initial_size = default_stack_size);
204206
@@ -213,7 +215,7 @@ namespace foonathan
213215 // / if it wasn't already created.
214216 // / \returns The per-thread \ref temporary_stack.
215217 // / \requires There must be a per-thread temporary stack (\ref FOONATHAN_MEMORY_TEMPORARY_STACK_MODE must not be equal to `0`).
216- // / \notes If \ref FOONATHAN_MEMORY_TEMPORARY_STACK_MODE is equal to `1`,
218+ // / \note If \ref FOONATHAN_MEMORY_TEMPORARY_STACK_MODE is equal to `1`,
217219 // / this function can create the temporary stack.
218220 // / But if there is no \ref temporary_stack_initializer, it won't be destroyed.
219221 // / \relatesalso temporary_stack
@@ -248,15 +250,15 @@ namespace foonathan
248250 void * allocate (std::size_t size, std::size_t alignment);
249251
250252 // / \returns Whether or not the allocator object is active.
251- // / \notes The active allocator object is the last object created for one stack.
253+ // / \note The active allocator object is the last object created for one stack.
252254 // / Moving changes the active allocator.
253255 bool is_active () const FOONATHAN_NOEXCEPT;
254256
255257 // / \effects Instructs it to release unnecessary memory after automatic unwinding occurs.
256258 // / This will effectively forward to \ref memory_stack::shrink_to_fit() of the internal stack.
257- // / \notes Like the use of the \ref temporary_stack_initializer this can be used as an optimization,
259+ // / \note Like the use of the \ref temporary_stack_initializer this can be used as an optimization,
258260 // / to tell when the thread's \ref temporary_stack isn't needed anymore and can be destroyed.
259- // / \notes It doesn't call shrink to fit immediately, only in the destructor!
261+ // / \note It doesn't call shrink to fit immediately, only in the destructor!
260262 void shrink_to_fit () FOONATHAN_NOEXCEPT;
261263
262264 // / \returns The internal stack the temporary allocator is using.
0 commit comments