@@ -252,7 +252,8 @@ class ConstIterator {
252
252
253
253
} // namespace vector
254
254
255
- /* * HILTI's `Vector` is a `std::vector`-like type with additional safety guarantees.
255
+ /* *
256
+ * HILTI's `Vector` is a `std::vector`-like type with additional safety guarantees.
256
257
*
257
258
* In particular it guarantees that
258
259
*
@@ -262,7 +263,7 @@ class ConstIterator {
262
263
*
263
264
* If not otherwise specified, member functions have the semantics of
264
265
* `std::vector` member functions.
265
- * * /
266
+ */
266
267
template <typename T, typename Allocator>
267
268
class Vector : protected std ::vector<T, Allocator> {
268
269
public:
@@ -289,7 +290,8 @@ class Vector : protected std::vector<T, Allocator> {
289
290
290
291
~Vector () = default ;
291
292
292
- /* * Returns the last element of the `vector`.
293
+ /* *
294
+ * Returns the first element of the `vector`.
293
295
*
294
296
* @return a reference to the last element
295
297
* @throw `IndexError` if the `Vector` is empty
@@ -301,7 +303,8 @@ class Vector : protected std::vector<T, Allocator> {
301
303
return V::front ();
302
304
}
303
305
304
- /* * Returns the last element of the `vector`.
306
+ /* *
307
+ * Returns the last element of the `vector`.
305
308
*
306
309
* @return a reference to the last element
307
310
* @throw `IndexError` if the `Vector` is empty
@@ -372,7 +375,8 @@ class Vector : protected std::vector<T, Allocator> {
372
375
return v;
373
376
}
374
377
375
- /* * Replaces the contents of this `Vector` with another `Vector`.
378
+ /* *
379
+ * Replaces the contents of this `Vector` with another `Vector`.
376
380
*
377
381
* In contrast to assignments of `std::vector` iterators remain valid and
378
382
* after assignment will point to positions in the assigned vector.
@@ -388,7 +392,8 @@ class Vector : protected std::vector<T, Allocator> {
388
392
return *this ;
389
393
}
390
394
391
- /* * Replaces the contents of this `Vector` with another `Vector`.
395
+ /* *
396
+ * Replaces the contents of this `Vector` with another `Vector`.
392
397
*
393
398
* In contrast to assignments of `std::vector` iterators remain valid and
394
399
* after assignment will point to positions in the assigned vector.
@@ -401,7 +406,8 @@ class Vector : protected std::vector<T, Allocator> {
401
406
return *this ;
402
407
}
403
408
404
- /* * Accesses specified element.
409
+ /* *
410
+ * Accesses specified element.
405
411
*
406
412
* @param i position of the element to return
407
413
* @return a reference to the element
@@ -414,7 +420,8 @@ class Vector : protected std::vector<T, Allocator> {
414
420
return V::data ()[i];
415
421
}
416
422
417
- /* * Accesses specified element.
423
+ /* *
424
+ * Accesses specified element.
418
425
*
419
426
* @param i position of the element to return
420
427
* @return the element
@@ -427,7 +434,8 @@ class Vector : protected std::vector<T, Allocator> {
427
434
return V::data ()[i];
428
435
}
429
436
430
- /* * Accesses specified element.
437
+ /* *
438
+ * Accesses specified element.
431
439
*
432
440
* @param i position of the element to return
433
441
* @return a reference to the element
@@ -440,7 +448,8 @@ class Vector : protected std::vector<T, Allocator> {
440
448
return V::data ()[i];
441
449
}
442
450
443
- /* Assigns a value to an element.
451
+ /* *
452
+ * Assigns a value to an element.
444
453
*
445
454
* If the element is not present in the vector, it is resized to contain
446
455
* at i + 1 values. The other added values are default-initialized.
@@ -455,7 +464,8 @@ class Vector : protected std::vector<T, Allocator> {
455
464
V::data ()[i] = std::move (x);
456
465
}
457
466
458
- /* * Concatenates this `Vector` and another `Vector`.
467
+ /* *
468
+ * Concatenates this `Vector` and another `Vector`.
459
469
*
460
470
* @param other the other `Vector` to append
461
471
* @return the concatenation of this `Vector` and the other `Vector`
@@ -466,7 +476,8 @@ class Vector : protected std::vector<T, Allocator> {
466
476
return v;
467
477
}
468
478
469
- /* * Appends a `Vector` in place.
479
+ /* *
480
+ * Appends a `Vector` in place.
470
481
*
471
482
* @param other the `Vector` to append
472
483
* @return a reference to the modified `Vector`
@@ -476,7 +487,8 @@ class Vector : protected std::vector<T, Allocator> {
476
487
return *this ;
477
488
}
478
489
479
- /* * Inserts value before a given position.
490
+ /* *
491
+ * Inserts value before a given position.
480
492
*
481
493
* @param pos iterator to the position preceding the inserted value
482
494
* @param value value to insert
0 commit comments