Skip to content

Commit

Permalink
Update tied_sequence docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Flast committed Jun 6, 2024
1 parent 456195a commit 69effb7
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docs/tied_sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ using const_reverse_iterator = std::reverse_iterator<const_iterator>;

```cpp
constexpr tied_sequence();
constexpr explicit tied_sequence(allocator_type const&);
```

**Exceptions**
Expand All @@ -58,17 +57,18 @@ No exception only if for all sequences meet all of
- `std::is_nothrow_default_constructible_v<Sequence> == true`

```cpp
constexpr explicit tied_sequence(allocator_type const& alloc) noexcept;
constexpr explicit tied_sequence(typename Sequences::allocator_type const&... alloc) noexcept;
```
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);
```

Expand All @@ -79,7 +79,7 @@ template <typename InputIterator>
constexpr tied_sequence(InputIterator first, InputIterator last);

template <typename InputIterator>
constexpr tied_sequence(InputIterator first, InputIterator last, allocator_type const&);
constexpr tied_sequence(InputIterator first, InputIterator last, allocator_type const& alloc);

template <typename InputIterator>
constexpr tied_sequence(InputIterator first, InputIterator last, typename Sequences::allocator_type const&... alloc);
Expand All @@ -94,15 +94,15 @@ 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);
```

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);
```
Expand All @@ -111,7 +111,7 @@ Move entire elements from other.
```cpp
constexpr tied_sequence(std::initializer_list<value_type> init);
constexpr tied_sequence(std::initializer_list<value_type> init, allocator_type const&);
constexpr tied_sequence(std::initializer_list<value_type> init, allocator_type const& alloc);
constexpr tied_sequence(std::initializer_list<value_type> init, typename Sequences::allocator_type const&... alloc);
```

Expand Down Expand Up @@ -594,3 +594,12 @@ constexpr typename tied_sequence<Sequences...>::size_type erase_if(tied_sequence
```

Erase every elements which `pred` returned true.

### forward\_allocator

```cpp
template <typename... Allocators>
/* unspecified */ forward_allocator(Allocators&&... alloc);
```

Forward allocators as `tied_sequence::allocator_type`.

0 comments on commit 69effb7

Please sign in to comment.