File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1140011400 tuple_element_t<1, @\exposid{iter-value-type}@<InputIterator>>; // \expos
1140111401template<class InputIterator>
1140211402 using @\placeholder{iter-to-alloc-type}@ = pair<
11403- add_const_t< tuple_element_t<0, @\exposid{iter-value-type}@<InputIterator> >>,
11403+ const tuple_element_t<0, @\exposid{iter-value-type}@<InputIterator>>,
1140411404 tuple_element_t<1, @\exposid{iter-value-type}@<InputIterator>>>; // \expos
1140511405template<ranges::@\libconcept{input_range}@ Range>
1140611406 using @\exposid{range-key-type}@ =
1140911409 using @\exposid{range-mapped-type}@ = typename ranges::range_value_t<Range>::second_type; // \expos
1141011410template<ranges::@\libconcept{input_range}@ Range>
1141111411 using @\exposid{range-to-alloc-type}@ =
11412- pair<add_const_t< typename ranges::range_value_t<Range>::first_type> ,
11412+ pair<const typename ranges::range_value_t<Range>::first_type,
1141311413 typename ranges::range_value_t<Range>::second_type>; // \expos
1141411414\end{codeblock}
1141511415
Original file line number Diff line number Diff line change 561561the \oldconcept {TransformationTrait} requirements
562562with a member typedef \tcode {type} that names the following type:
563563\begin {itemize }
564- \item for the first specialization, \tcode {add_volatile_t<TE> }, and
565- \item for the second specialization, \tcode {add_cv_t<TE> }.
564+ \item for the first specialization, \tcode {volatile TE }, and
565+ \item for the second specialization, \tcode {const volatile TE }.
566566\end {itemize }
567567
568568\pnum
616616the \oldconcept {TransformationTrait} requirements
617617with a member typedef \tcode {type} that names the following type:
618618\begin {itemize }
619- \item for the first specialization, \tcode {add_volatile_t< VA::type> }, and
620- \item for the second specialization, \tcode {add_cv_t< VA::type> }.
619+ \item for the first specialization, \tcode {volatile VA::type}, and
620+ \item for the second specialization, \tcode {const volatile VA::type}.
621621\end {itemize }
622622\end {itemdescr }
623623
Original file line number Diff line number Diff line change 1259412594 class @\libglobal{scaled_accessor}@ {
1259512595 public:
1259612596 using element_type =
12597- add_const_t< decltype(declval<ScalingFactor>() * declval<NestedAccessor::element_type>())> ;
12597+ const decltype(declval<ScalingFactor>() * declval<NestedAccessor::element_type>());
1259812598 using reference = remove_const_t<element_type>;
1259912599 using data_handle_type = NestedAccessor::data_handle_type;
1260012600 using offset_policy = scaled_accessor<ScalingFactor, NestedAccessor::offset_policy>;
1276612766 class @\libglobal{conjugated_accessor}@ {
1276712767 public:
1276812768 using element_type =
12769- add_const_t< decltype(@\exposid{conj-if-needed}@(declval<NestedAccessor::element_type>()))> ;
12769+ const decltype(@\exposid{conj-if-needed}@(declval<NestedAccessor::element_type>()));
1277012770 using reference = remove_const_t<element_type>;
1277112771 using data_handle_type = typename NestedAccessor::data_handle_type;
1277212772 using offset_policy = conjugated_accessor<NestedAccessor::offset_policy>;
Original file line number Diff line number Diff line change 6363
6464 // \ref {utility.as.const }, \tcode {as_const}
6565 template<class T>
66- constexpr add_const_t<T> & as_const(T& t) noexcept;
66+ constexpr const T & as_const(T& t) noexcept;
6767 template<class T>
6868 void as_const(const T&&) = delete;
6969
495495
496496\indexlibraryglobal {as_const}%
497497\begin {itemdecl }
498- template<class T> constexpr add_const_t<T> & as_const(T& t) noexcept;
498+ template<class T> constexpr const T & as_const(T& t) noexcept;
499499\end {itemdecl }
500500
501501\begin {itemdescr }
28492849\pnum
28502850Let \tcode {TE} denote \tcode {tuple_element_t<I, T>} of the cv-unqualified type \tcode {T}. Then
28512851each specialization of the template meets the \oldconcept {TransformationTrait} requirements\iref {meta.rqmts }
2852- with a member typedef \tcode {type} that names the type \tcode {add_const_t<TE> }.
2852+ with a member typedef \tcode {type} that names the type \tcode {const TE }.
28532853
28542854\pnum
28552855In addition to being available via inclusion of the \libheader {tuple} header,
59375937Let \tcode {VA} denote \tcode {variant_alternative<I, T>} of the
59385938cv-unqualified type \tcode {T}. Then each specialization of the template
59395939meets the \oldconcept {TransformationTrait} requirements\iref {meta.rqmts } with a
5940- member typedef \tcode {type} that names the type \tcode {add_const_t< VA::type> }.
5940+ member typedef \tcode {type} that names the type \tcode {const VA::type}.
59415941\end {itemdescr }
59425942
59435943\indexlibraryglobal {variant_alternative}%
You can’t perform that action at this time.
0 commit comments