Skip to content

Commit

Permalink
[inplace.vector] Use T*, not pointer, for some return types
Browse files Browse the repository at this point in the history
This is editorial for now. But P3160 "allocator-aware `inplace_vector`"
*might* change the definition of `pointer` (that's still up in the air),
and if so, we definitely want `try_emplace_back` to continue returning
a raw pointer, not some kind of fancy pointer. Make that change now,
so that we don't have to worry about it during the discussion of P3160.
  • Loading branch information
Quuxplusone committed Oct 18, 2024
1 parent 49113a4 commit d72afea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9672,9 +9672,9 @@
constexpr void pop_back();

template<class... Args>
constexpr pointer try_emplace_back(Args&&... args);
constexpr pointer try_push_back(const T& x);
constexpr pointer try_push_back(T&& x);
constexpr T* try_emplace_back(Args&&... args);
constexpr T* try_push_back(const T& x);
constexpr T* try_push_back(T&& x);
template<@\exposconcept{container-compatible-range}@<T> R>
constexpr ranges::borrowed_iterator_t<R> try_append_range(R&& rg);

Expand Down Expand Up @@ -9950,9 +9950,9 @@
\indexlibrarymember{try_push_back}{inplace_vector}%
\begin{itemdecl}
template<class... Args>
constexpr pointer try_emplace_back(Args&&... args);
constexpr pointer try_push_back(const T& x);
constexpr pointer try_push_back(T&& x);
constexpr T* try_emplace_back(Args&&... args);
constexpr T* try_push_back(const T& x);
constexpr T* try_push_back(T&& x);
\end{itemdecl}

\begin{itemdescr}
Expand Down

0 comments on commit d72afea

Please sign in to comment.