From 69effb7937fd50c4820f8c2c37f2ee3b93742630 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Thu, 6 Jun 2024 14:23:31 +0900 Subject: [PATCH] Update tied_sequence docs --- docs/tied_sequence.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/tied_sequence.md b/docs/tied_sequence.md index aa53cdd..4f6e231 100644 --- a/docs/tied_sequence.md +++ b/docs/tied_sequence.md @@ -49,7 +49,6 @@ using const_reverse_iterator = std::reverse_iterator; ```cpp constexpr tied_sequence(); -constexpr explicit tied_sequence(allocator_type const&); ``` **Exceptions** @@ -58,6 +57,7 @@ No exception only if for all sequences meet all of - `std::is_nothrow_default_constructible_v == true` ```cpp +constexpr explicit tied_sequence(allocator_type const& alloc) noexcept; constexpr explicit tied_sequence(typename Sequences::allocator_type const&... alloc) noexcept; ``` @@ -65,10 +65,10 @@ Construct sequences form corresponding allocator. ```cpp constexpr tied_sequence(size_type count, value_type const& value); -constexpr tied_sequence(size_type count, value_type const& value, allocator_type const&); +constexpr tied_sequence(size_type count, value_type const& value, allocator_type const& alloc); constexpr tied_sequence(size_type count, value_type const& value, typename Sequences::allocator_type const&... alloc); constexpr tied_sequence(size_type count); -constexpr tied_sequence(size_type count, allocator_type const&); +constexpr tied_sequence(size_type count, allocator_type const& alloc); constexpr tied_sequence(size_type count, typename Sequences::allocator_type const&... alloc); ``` @@ -79,7 +79,7 @@ template constexpr tied_sequence(InputIterator first, InputIterator last); template -constexpr tied_sequence(InputIterator first, InputIterator last, allocator_type const&); +constexpr tied_sequence(InputIterator first, InputIterator last, allocator_type const& alloc); template constexpr tied_sequence(InputIterator first, InputIterator last, typename Sequences::allocator_type const&... alloc); @@ -94,7 +94,7 @@ Construct containers from `[first, last)`. ```cpp constexpr tied_sequence(tied_sequence const& other); -constexpr tied_sequence(tied_sequence const& other, allocator_type const&); +constexpr tied_sequence(tied_sequence const& other, allocator_type const& alloc); constexpr tied_sequence(tied_sequence const& other, typename Sequences::allocator_type const&... alloc); ``` @@ -102,7 +102,7 @@ Copy from other. ```cpp constexpr tied_sequence(tied_sequence&& other); -constexpr tied_sequence(tied_sequence&& other, allocator_type const&); +constexpr tied_sequence(tied_sequence&& other, allocator_type const& alloc); constexpr tied_sequence(tied_sequence&& other, typename Sequences::allocator_type const&... alloc); ``` @@ -111,7 +111,7 @@ Move entire elements from other. ```cpp constexpr tied_sequence(std::initializer_list init); -constexpr tied_sequence(std::initializer_list init, allocator_type const&); +constexpr tied_sequence(std::initializer_list init, allocator_type const& alloc); constexpr tied_sequence(std::initializer_list init, typename Sequences::allocator_type const&... alloc); ``` @@ -594,3 +594,12 @@ constexpr typename tied_sequence::size_type erase_if(tied_sequence ``` Erase every elements which `pred` returned true. + +### forward\_allocator + +```cpp +template +/* unspecified */ forward_allocator(Allocators&&... alloc); +``` + +Forward allocators as `tied_sequence::allocator_type`.