Skip to content

Commit a5443fe

Browse files
[container.node] Exposition-only formatting for node handle members
Also changes `container_node_type` and `ator_traits` to _`container-node-type`_ and _`ator-traits`_ respectively.
1 parent ff706ad commit a5443fe

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

source/containers.tex

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,16 +2378,16 @@
23782378
using allocator_type = @\seebelownc{}@;
23792379

23802380
private:
2381-
using container_node_type = @\unspecnc@; // \expos
2382-
using ator_traits = allocator_traits<allocator_type>; // \expos
2381+
using @\exposid{container-node-type}@ = @\unspecnc@; // \expos
2382+
using @\exposid{ator-traits}@ = allocator_traits<allocator_type>; // \expos
23832383

2384-
typename ator_traits::template
2385-
rebind_traits<container_node_type>::pointer ptr_; // \expos
2386-
optional<allocator_type> alloc_; // \expos
2384+
typename @\exposid{ator-traits}@::template
2385+
rebind_traits<@\exposid{container-node-type}@>::pointer @\exposid{ptr_}@; // \expos
2386+
optional<allocator_type> @\exposid{alloc_}@; // \expos
23872387

23882388
public:
23892389
// \ref{container.node.cons}, constructors, copy, and assignment
2390-
constexpr @\placeholdernc{node-handle}@() noexcept : ptr_(), alloc_() {}
2390+
constexpr @\placeholdernc{node-handle}@() noexcept : @\exposid{ptr_}@(), @\exposid{alloc_}@() {}
23912391
constexpr @\placeholdernc{node-handle}@(@\placeholdernc{node-handle}@&&) noexcept;
23922392
constexpr @\placeholdernc{node-handle}@& operator=(@\placeholdernc{node-handle}@&&);
23932393

@@ -2405,8 +2405,8 @@
24052405

24062406
// \ref{container.node.modifiers}, modifiers
24072407
constexpr void swap(@\placeholdernc{node-handle}@&)
2408-
noexcept(ator_traits::propagate_on_container_swap::value ||
2409-
ator_traits::is_always_equal::value);
2408+
noexcept(@\exposid{ator-traits}@::propagate_on_container_swap::value ||
2409+
@\exposid{ator-traits}@::is_always_equal::value);
24102410

24112411
friend constexpr void swap(@\placeholdernc{node-handle}@& x, @\placeholdernc{node-handle}@& y) noexcept(noexcept(x.swap(y))) {
24122412
x.swap(y);
@@ -2424,9 +2424,9 @@
24242424
\pnum
24252425
\effects
24262426
Constructs a \exposid{node-handle} object initializing
2427-
\tcode{ptr_} with \tcode{nh.ptr_}. Move constructs \tcode{alloc_} with
2428-
\tcode{nh.alloc_}. Assigns \keyword{nullptr} to \tcode{nh.ptr_} and assigns
2429-
\tcode{nullopt} to \tcode{nh.alloc_}.
2427+
\exposid{ptr_} with \tcode{nh.\exposid{ptr_}}. Move constructs \exposid{alloc_} with
2428+
\tcode{nh.\exposid{alloc_}}. Assigns \keyword{nullptr} to \tcode{nh.\exposid{ptr_}} and assigns
2429+
\tcode{nullopt} to \tcode{nh.\exposid{alloc_}}.
24302430
\end{itemdescr}
24312431

24322432
\begin{itemdecl}
@@ -2436,28 +2436,28 @@
24362436
\begin{itemdescr}
24372437
\pnum
24382438
\expects
2439-
Either \tcode{!alloc_}, or
2440-
\tcode{ator_traits::propagate_on_container_move_assignment::\-value}
2441-
is \tcode{true}, or \tcode{alloc_ == nh.alloc_}.
2439+
Either \tcode{!\exposid{alloc_}}, or
2440+
\tcode{\exposid{ator-traits}::propagate_on_container_move_assignment::\-value}
2441+
is \tcode{true}, or \tcode{\exposid{alloc_} == nh.\exposid{alloc_}}.
24422442

24432443
\pnum
24442444
\effects
24452445
\begin{itemize}
24462446
\item
2447-
If \tcode{ptr_ != nullptr}, destroys the \tcode{value_type}
2448-
subobject in the \tcode{container_node_type} object pointed to by \tcode{ptr_}
2449-
by calling \tcode{ator_traits::destroy}, then deallocates \tcode{ptr_} by
2450-
calling \tcode{ator_traits::template rebind_traits<container_node_type>::deallocate}.
2447+
If \tcode{\exposid{ptr_} != nullptr}, destroys the \tcode{value_type}
2448+
subobject in the \exposid{container-node-type} object pointed to by \exposid{ptr_}
2449+
by calling \tcode{\exposid{ator-traits}::destroy}, then deallocates \exposid{ptr_} by
2450+
calling \tcode{\exposid{ator-traits}::template rebind_traits<\exposid{container-node-type}>::\-deallocate}.
24512451
\item
2452-
Assigns \tcode{nh.ptr_} to \tcode{ptr_}.
2452+
Assigns \tcode{nh.\exposid{ptr_}} to \exposid{ptr_}.
24532453
\item
2454-
If \tcode{!alloc\textunderscore} or \tcode{ator_traits::propagate_on_container_move_assignment::value}
2454+
If \tcode{!alloc\textunderscore} or \tcode{\exposid{ator-traits}::propagate_on_container_move_assignment::value}
24552455
is \tcode{true}, \linebreak
2456-
move assigns \tcode{nh.alloc_} to \tcode{alloc_}.
2456+
move assigns \tcode{nh.\exposid{alloc_}} to \exposid{alloc_}.
24572457
\item
24582458
Assigns
2459-
\keyword{nullptr} to \tcode{nh.ptr_} and assigns \tcode{nullopt} to
2460-
\tcode{nh.alloc_}.
2459+
\keyword{nullptr} to \tcode{nh.\exposid{ptr_}} and assigns \tcode{nullopt} to
2460+
\tcode{nh.\exposid{alloc_}}.
24612461
\end{itemize}
24622462

24632463
\pnum
@@ -2478,10 +2478,10 @@
24782478
\begin{itemdescr}
24792479
\pnum
24802480
\effects
2481-
If \tcode{ptr_ != nullptr}, destroys the \tcode{value_type} subobject
2482-
in the \tcode{container_node_type} object pointed to by \tcode{ptr_} by calling
2483-
\tcode{ator_traits::destroy}, then deallocates \tcode{ptr_} by calling
2484-
\tcode{ator_traits::template rebind_traits<container_node_type>::deallocate}.
2481+
If \tcode{\exposid{ptr_} != nullptr}, destroys the \tcode{value_type} subobject
2482+
in the \exposid{container-node-type} object pointed to by \exposid{ptr_} by calling
2483+
\tcode{\exposid{ator-traits}::destroy}, then deallocates \exposid{ptr_} by calling
2484+
\tcode{\exposid{ator-traits}::template rebind_traits<\exposid{container-node-type}>::\-deallocate}.
24852485
\end{itemdescr}
24862486

24872487
\rSec3[container.node.observers]{Observers}
@@ -2498,7 +2498,7 @@
24982498
\pnum
24992499
\returns
25002500
A reference to the \tcode{value_type} subobject in the
2501-
\tcode{container_node_type} object pointed to by \tcode{ptr_}.
2501+
\exposid{container-node-type} object pointed to by \exposid{ptr_}.
25022502

25032503
\pnum
25042504
\throws
@@ -2518,7 +2518,7 @@
25182518
\returns
25192519
A non-const reference to the \tcode{key_type} member of the
25202520
\tcode{value_type} subobject in the \tcode{contain\-er_node_type} object
2521-
pointed to by \tcode{ptr_}.
2521+
pointed to by \exposid{ptr_}.
25222522

25232523
\pnum
25242524
\throws
@@ -2541,8 +2541,8 @@
25412541
\pnum
25422542
\returns
25432543
A reference to the \tcode{mapped_type} member of the
2544-
\tcode{value_type} subobject in the \tcode{container_node_type} object
2545-
pointed to by \tcode{ptr_}.
2544+
\tcode{value_type} subobject in the \exposid{container-\-node-type} object
2545+
pointed to by \exposid{ptr_}.
25462546

25472547
\pnum
25482548
\throws
@@ -2560,7 +2560,7 @@
25602560

25612561
\pnum
25622562
\returns
2563-
\tcode{*alloc_}.
2563+
\tcode{*\exposid{alloc_}}.
25642564

25652565
\pnum
25662566
\throws
@@ -2574,7 +2574,7 @@
25742574
\begin{itemdescr}
25752575
\pnum
25762576
\returns
2577-
\tcode{ptr_ != nullptr}.
2577+
\tcode{\exposid{ptr_} != nullptr}.
25782578
\end{itemdescr}
25792579

25802580
\begin{itemdecl}
@@ -2584,29 +2584,29 @@
25842584
\begin{itemdescr}
25852585
\pnum
25862586
\returns
2587-
\tcode{ptr_ == nullptr}.
2587+
\tcode{\exposid{ptr_} == nullptr}.
25882588
\end{itemdescr}
25892589

25902590
\rSec3[container.node.modifiers]{Modifiers}
25912591

25922592
\begin{itemdecl}
25932593
constexpr void swap(@\placeholdernc{node-handle}@& nh)
2594-
noexcept(ator_traits::propagate_on_container_swap::value ||
2595-
ator_traits::is_always_equal::value);
2594+
noexcept(@\exposid{ator-traits}@::propagate_on_container_swap::value ||
2595+
@\exposid{ator-traits}@::is_always_equal::value);
25962596
\end{itemdecl}
25972597

25982598
\begin{itemdescr}
25992599
\pnum
26002600
\expects
2601-
\tcode{!alloc_}, or \tcode{!nh.alloc_}, or
2602-
\tcode{ator_traits::propagate_on_container_swap::value} is \tcode{true},
2603-
or \tcode{alloc_ == nh.alloc_}.
2601+
\tcode{!\exposid{alloc_}}, or \tcode{!nh.\exposid{alloc_}}, or
2602+
\tcode{\exposid{ator-traits}::propagate_on_container_swap::value} is \tcode{true},
2603+
or \tcode{\exposid{alloc_} == nh.\exposid{alloc_}}.
26042604

26052605
\pnum
26062606
\effects
2607-
Calls \tcode{swap(ptr_, nh.ptr_)}. If \tcode{!alloc_}, or
2608-
\tcode{!nh.alloc_}, or \tcode{ator_traits::propagate_on_container_swap::value}
2609-
is \tcode{true} calls \tcode{swap(alloc_, nh.alloc_)}.
2607+
Calls \tcode{swap(\exposid{ptr_}, nh.\exposid{ptr_})}. If \tcode{!\exposid{alloc_}}, or
2608+
\tcode{!nh.\exposid{alloc_}}, or \tcode{\exposid{ator-traits}::propagate_on_container_swap::value}
2609+
is \tcode{true} calls \tcode{swap(\exposid{alloc_}, nh.\exposid{alloc_})}.
26102610
\end{itemdescr}
26112611

26122612
\rSec2[container.insert.return]{Insert return type}

0 commit comments

Comments
 (0)