Skip to content

Commit d266b49

Browse files
[allocator.adaptor] Exposition-only style for outer-traits and inner
Renaming `OuterTraits` to `outer-traits`.
1 parent 526f230 commit d266b49

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

source/memory.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8643,20 +8643,20 @@
86438643
template<class OuterAlloc, class... InnerAllocs>
86448644
class scoped_allocator_adaptor : public OuterAlloc {
86458645
private:
8646-
using OuterTraits = allocator_traits<OuterAlloc>; // \expos
8647-
scoped_allocator_adaptor<InnerAllocs...> inner; // \expos
8646+
using @\exposid{outer-traits}@ = allocator_traits<OuterAlloc>; // \expos
8647+
scoped_allocator_adaptor<InnerAllocs...> @\exposid{inner}@; // \expos
86488648

86498649
public:
86508650
using outer_allocator_type = OuterAlloc;
86518651
using inner_allocator_type = @\seebelow@;
86528652

8653-
using value_type = typename OuterTraits::value_type;
8654-
using size_type = typename OuterTraits::size_type;
8655-
using difference_type = typename OuterTraits::difference_type;
8656-
using pointer = typename OuterTraits::pointer;
8657-
using const_pointer = typename OuterTraits::const_pointer;
8658-
using void_pointer = typename OuterTraits::void_pointer;
8659-
using const_void_pointer = typename OuterTraits::const_void_pointer;
8653+
using value_type = typename @\exposid{outer-traits}@::value_type;
8654+
using size_type = typename @\exposid{outer-traits}@::size_type;
8655+
using difference_type = typename @\exposid{outer-traits}@::difference_type;
8656+
using pointer = typename @\exposid{outer-traits}@::pointer;
8657+
using const_pointer = typename @\exposid{outer-traits}@::const_pointer;
8658+
using void_pointer = typename @\exposid{outer-traits}@::void_pointer;
8659+
using const_void_pointer = typename @\exposid{outer-traits}@::const_void_pointer;
86608660

86618661
using propagate_on_container_copy_assignment = @\seebelow@;
86628662
using propagate_on_container_move_assignment = @\seebelow@;
@@ -8665,7 +8665,7 @@
86658665

86668666
template<class Tp> struct rebind {
86678667
using other = scoped_allocator_adaptor<
8668-
OuterTraits::template rebind_alloc<Tp>, InnerAllocs...>;
8668+
@\exposid{outer-traits}@::template rebind_alloc<Tp>, InnerAllocs...>;
86698669
};
86708670

86718671
scoped_allocator_adaptor();
@@ -8788,7 +8788,7 @@
87888788
\begin{itemdescr}
87898789
\pnum
87908790
\effects
8791-
Value-initializes the \tcode{OuterAlloc} base class and the \tcode{inner} allocator
8791+
Value-initializes the \tcode{OuterAlloc} base class and the \exposid{inner} allocator
87928792
object.
87938793
\end{itemdescr}
87948794

@@ -8806,7 +8806,7 @@
88068806
\pnum
88078807
\effects
88088808
Initializes the \tcode{OuterAlloc} base class with
8809-
\tcode{std::forward<OuterA2>(outerAlloc)} and \tcode{inner} with \tcode{innerAllocs...}
8809+
\tcode{std::forward<OuterA2>(outerAlloc)} and \exposid{inner} with \tcode{innerAllocs...}
88108810
(hence recursively initializing each allocator within the adaptor with the corresponding
88118811
allocator from the argument list).
88128812
\end{itemdescr}
@@ -8899,7 +8899,7 @@
88998899
\pnum
89008900
\returns
89018901
\tcode{*this} if \tcode{sizeof...(InnerAllocs)} is zero; otherwise,
8902-
\tcode{inner}.
8902+
\exposid{inner}.
89038903
\end{itemdescr}
89048904

89058905
\indexlibrarymember{outer_allocator}{scoped_allocator_adaptor}%

0 commit comments

Comments
 (0)