From d72afea7e6ef3bf9976a7cda1006ec70139f8f54 Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Fri, 18 Oct 2024 13:30:24 -0400 Subject: [PATCH] [inplace.vector] Use `T*`, not `pointer`, for some return types 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. --- source/containers.tex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/containers.tex b/source/containers.tex index b67726a611..10dc73d499 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -9672,9 +9672,9 @@ constexpr void pop_back(); template - 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}@ R> constexpr ranges::borrowed_iterator_t try_append_range(R&& rg); @@ -9950,9 +9950,9 @@ \indexlibrarymember{try_push_back}{inplace_vector}% \begin{itemdecl} template - 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}