From Jason Turner

[allocator.adaptor]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpkwyq8yqm/{from.md → to.md} +146 -4
tmp/tmpkwyq8yqm/{from.md → to.md} RENAMED
@@ -2,11 +2,11 @@
2
 
3
  ### Header `<scoped_allocator>` synopsis <a id="allocator.adaptor.syn">[[allocator.adaptor.syn]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
- // class template scoped allocator adaptor
8
  template<class OuterAlloc, class... InnerAlloc>
9
  class scoped_allocator_adaptor;
10
 
11
  // [scoped.adaptor.operators], scoped allocator operators
12
  template<class OuterA1, class OuterA2, class... InnerAllocs>
@@ -302,13 +302,14 @@ template<class T>
302
  ``` cpp
303
  scoped_allocator_adaptor select_on_container_copy_construction() const;
304
  ```
305
 
306
  *Returns:* A new `scoped_allocator_adaptor` object where each allocator
307
- `A` in the adaptor is initialized from the result of calling
308
- `allocator_traits<A>::select_on_container_copy_construction()` on the
309
- corresponding allocator in `*this`.
 
310
 
311
  ### Operators <a id="scoped.adaptor.operators">[[scoped.adaptor.operators]]</a>
312
 
313
  ``` cpp
314
  template<class OuterA1, class OuterA2, class... InnerAllocs>
@@ -326,5 +327,146 @@ otherwise
326
 
327
  ``` cpp
328
  a.outer_allocator() == b.outer_allocator() && a.inner_allocator() == b.inner_allocator()
329
  ```
330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ### Header `<scoped_allocator>` synopsis <a id="allocator.adaptor.syn">[[allocator.adaptor.syn]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
+ // class template scoped_allocator_adaptor
8
  template<class OuterAlloc, class... InnerAlloc>
9
  class scoped_allocator_adaptor;
10
 
11
  // [scoped.adaptor.operators], scoped allocator operators
12
  template<class OuterA1, class OuterA2, class... InnerAllocs>
 
302
  ``` cpp
303
  scoped_allocator_adaptor select_on_container_copy_construction() const;
304
  ```
305
 
306
  *Returns:* A new `scoped_allocator_adaptor` object where each allocator
307
+ `a1` within the adaptor is initialized with
308
+ `allocator_traits<A1>::select_on_container_copy_construction(a2)`, where
309
+ `A1` is the type of `a1` and `a2` is the corresponding allocator in
310
+ `*this`.
311
 
312
  ### Operators <a id="scoped.adaptor.operators">[[scoped.adaptor.operators]]</a>
313
 
314
  ``` cpp
315
  template<class OuterA1, class OuterA2, class... InnerAllocs>
 
327
 
328
  ``` cpp
329
  a.outer_allocator() == b.outer_allocator() && a.inner_allocator() == b.inner_allocator()
330
  ```
331
 
332
+ <!-- Link reference definitions -->
333
+ [alg.sorting]: algorithms.md#alg.sorting
334
+ [allocator.adaptor]: #allocator.adaptor
335
+ [allocator.adaptor.cnstr]: #allocator.adaptor.cnstr
336
+ [allocator.adaptor.members]: #allocator.adaptor.members
337
+ [allocator.adaptor.syn]: #allocator.adaptor.syn
338
+ [allocator.adaptor.types]: #allocator.adaptor.types
339
+ [allocator.globals]: #allocator.globals
340
+ [allocator.members]: #allocator.members
341
+ [allocator.requirements.completeness]: library.md#allocator.requirements.completeness
342
+ [allocator.requirements.general]: library.md#allocator.requirements.general
343
+ [allocator.tag]: #allocator.tag
344
+ [allocator.traits]: #allocator.traits
345
+ [allocator.traits.general]: #allocator.traits.general
346
+ [allocator.traits.members]: #allocator.traits.members
347
+ [allocator.traits.other]: #allocator.traits.other
348
+ [allocator.traits.types]: #allocator.traits.types
349
+ [allocator.uses]: #allocator.uses
350
+ [allocator.uses.construction]: #allocator.uses.construction
351
+ [allocator.uses.trait]: #allocator.uses.trait
352
+ [basic.align]: basic.md#basic.align
353
+ [basic.compound]: basic.md#basic.compound
354
+ [basic.stc.dynamic.allocation]: basic.md#basic.stc.dynamic.allocation
355
+ [basic.types.general]: basic.md#basic.types.general
356
+ [bit.cast]: utilities.md#bit.cast
357
+ [c.malloc]: #c.malloc
358
+ [conv.qual]: expr.md#conv.qual
359
+ [cpp17.defaultconstructible]: #cpp17.defaultconstructible
360
+ [cpp17.destructible]: #cpp17.destructible
361
+ [cpp17.moveassignable]: #cpp17.moveassignable
362
+ [cpp17.moveconstructible]: #cpp17.moveconstructible
363
+ [cpp17.nullablepointer]: #cpp17.nullablepointer
364
+ [default.allocator]: #default.allocator
365
+ [default.allocator.general]: #default.allocator.general
366
+ [defns.const.subexpr]: intro.md#defns.const.subexpr
367
+ [expr.eq]: expr.md#expr.eq
368
+ [function.objects]: utilities.md#function.objects
369
+ [inout.ptr]: #inout.ptr
370
+ [inout.ptr.t]: #inout.ptr.t
371
+ [intro.multithread]: basic.md#intro.multithread
372
+ [intro.object]: basic.md#intro.object
373
+ [intro.races]: basic.md#intro.races
374
+ [mem]: #mem
375
+ [mem.general]: #mem.general
376
+ [mem.poly.allocator.class]: #mem.poly.allocator.class
377
+ [mem.poly.allocator.class.general]: #mem.poly.allocator.class.general
378
+ [mem.poly.allocator.ctor]: #mem.poly.allocator.ctor
379
+ [mem.poly.allocator.eq]: #mem.poly.allocator.eq
380
+ [mem.poly.allocator.mem]: #mem.poly.allocator.mem
381
+ [mem.res]: #mem.res
382
+ [mem.res.class]: #mem.res.class
383
+ [mem.res.class.general]: #mem.res.class.general
384
+ [mem.res.eq]: #mem.res.eq
385
+ [mem.res.global]: #mem.res.global
386
+ [mem.res.monotonic.buffer]: #mem.res.monotonic.buffer
387
+ [mem.res.monotonic.buffer.ctor]: #mem.res.monotonic.buffer.ctor
388
+ [mem.res.monotonic.buffer.general]: #mem.res.monotonic.buffer.general
389
+ [mem.res.monotonic.buffer.mem]: #mem.res.monotonic.buffer.mem
390
+ [mem.res.pool]: #mem.res.pool
391
+ [mem.res.pool.ctor]: #mem.res.pool.ctor
392
+ [mem.res.pool.mem]: #mem.res.pool.mem
393
+ [mem.res.pool.options]: #mem.res.pool.options
394
+ [mem.res.pool.overview]: #mem.res.pool.overview
395
+ [mem.res.private]: #mem.res.private
396
+ [mem.res.public]: #mem.res.public
397
+ [mem.res.syn]: #mem.res.syn
398
+ [mem.summary]: #mem.summary
399
+ [memory]: #memory
400
+ [memory.general]: #memory.general
401
+ [memory.syn]: #memory.syn
402
+ [meta.rqmts]: meta.md#meta.rqmts
403
+ [new.delete]: support.md#new.delete
404
+ [obj.lifetime]: #obj.lifetime
405
+ [out.ptr]: #out.ptr
406
+ [out.ptr.t]: #out.ptr.t
407
+ [pointer.conversion]: #pointer.conversion
408
+ [pointer.traits]: #pointer.traits
409
+ [pointer.traits.functions]: #pointer.traits.functions
410
+ [pointer.traits.general]: #pointer.traits.general
411
+ [pointer.traits.optmem]: #pointer.traits.optmem
412
+ [pointer.traits.types]: #pointer.traits.types
413
+ [ptr.align]: #ptr.align
414
+ [scoped.adaptor.operators]: #scoped.adaptor.operators
415
+ [smartptr]: #smartptr
416
+ [smartptr.adapt]: #smartptr.adapt
417
+ [specialized.addressof]: #specialized.addressof
418
+ [specialized.algorithms]: algorithms.md#specialized.algorithms
419
+ [stmt.dcl]: stmt.md#stmt.dcl
420
+ [swappable.requirements]: library.md#swappable.requirements
421
+ [temp.deduct]: temp.md#temp.deduct
422
+ [term.incomplete.type]: basic.md#term.incomplete.type
423
+ [tuple]: utilities.md#tuple
424
+ [unique.ptr]: #unique.ptr
425
+ [unique.ptr.create]: #unique.ptr.create
426
+ [unique.ptr.dltr]: #unique.ptr.dltr
427
+ [unique.ptr.dltr.dflt]: #unique.ptr.dltr.dflt
428
+ [unique.ptr.dltr.dflt1]: #unique.ptr.dltr.dflt1
429
+ [unique.ptr.dltr.general]: #unique.ptr.dltr.general
430
+ [unique.ptr.general]: #unique.ptr.general
431
+ [unique.ptr.io]: #unique.ptr.io
432
+ [unique.ptr.runtime]: #unique.ptr.runtime
433
+ [unique.ptr.runtime.asgn]: #unique.ptr.runtime.asgn
434
+ [unique.ptr.runtime.ctor]: #unique.ptr.runtime.ctor
435
+ [unique.ptr.runtime.general]: #unique.ptr.runtime.general
436
+ [unique.ptr.runtime.modifiers]: #unique.ptr.runtime.modifiers
437
+ [unique.ptr.runtime.observers]: #unique.ptr.runtime.observers
438
+ [unique.ptr.single]: #unique.ptr.single
439
+ [unique.ptr.single.asgn]: #unique.ptr.single.asgn
440
+ [unique.ptr.single.ctor]: #unique.ptr.single.ctor
441
+ [unique.ptr.single.dtor]: #unique.ptr.single.dtor
442
+ [unique.ptr.single.general]: #unique.ptr.single.general
443
+ [unique.ptr.single.modifiers]: #unique.ptr.single.modifiers
444
+ [unique.ptr.single.observers]: #unique.ptr.single.observers
445
+ [unique.ptr.special]: #unique.ptr.special
446
+ [unord.hash]: utilities.md#unord.hash
447
+ [util.sharedptr]: #util.sharedptr
448
+ [util.smartptr.enab]: #util.smartptr.enab
449
+ [util.smartptr.getdeleter]: #util.smartptr.getdeleter
450
+ [util.smartptr.hash]: #util.smartptr.hash
451
+ [util.smartptr.ownerless]: #util.smartptr.ownerless
452
+ [util.smartptr.shared]: #util.smartptr.shared
453
+ [util.smartptr.shared.assign]: #util.smartptr.shared.assign
454
+ [util.smartptr.shared.cast]: #util.smartptr.shared.cast
455
+ [util.smartptr.shared.cmp]: #util.smartptr.shared.cmp
456
+ [util.smartptr.shared.const]: #util.smartptr.shared.const
457
+ [util.smartptr.shared.create]: #util.smartptr.shared.create
458
+ [util.smartptr.shared.dest]: #util.smartptr.shared.dest
459
+ [util.smartptr.shared.general]: #util.smartptr.shared.general
460
+ [util.smartptr.shared.io]: #util.smartptr.shared.io
461
+ [util.smartptr.shared.mod]: #util.smartptr.shared.mod
462
+ [util.smartptr.shared.obs]: #util.smartptr.shared.obs
463
+ [util.smartptr.shared.spec]: #util.smartptr.shared.spec
464
+ [util.smartptr.weak]: #util.smartptr.weak
465
+ [util.smartptr.weak.assign]: #util.smartptr.weak.assign
466
+ [util.smartptr.weak.bad]: #util.smartptr.weak.bad
467
+ [util.smartptr.weak.const]: #util.smartptr.weak.const
468
+ [util.smartptr.weak.dest]: #util.smartptr.weak.dest
469
+ [util.smartptr.weak.general]: #util.smartptr.weak.general
470
+ [util.smartptr.weak.mod]: #util.smartptr.weak.mod
471
+ [util.smartptr.weak.obs]: #util.smartptr.weak.obs
472
+ [util.smartptr.weak.spec]: #util.smartptr.weak.spec