Skip to content

Commit 4aec31e

Browse files
authored
Merge pull request #149 from elbeno/fix-tuple-docs
2 parents 4b0b178 + 2c73470 commit 4aec31e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

docs/tuple.adoc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ auto x_by_index2 = t[0_idx]; // equivalent
7777
`_idx` is a user-defined literal in the `stdx::literals` namespace. It is
7878
equivalent to using the `index` variable template.
7979

80-
`get` is also available as a member function on `stdx::tuple` and works either
81-
by index or by type (using the `tag` variable template):
82-
[source,cpp]
83-
----
84-
using namespace stdx::literals;
85-
auto t = stdx::tuple{1, true};
86-
auto x_by_index1 = t.get(index<0>);
87-
auto x_by_index2 = t.get(0_idx);
88-
auto x_by_type = t.get(tag<int>);
89-
----
90-
9180
NOTE: All forms of access preserve the value category of the tuple; i.e.
9281
accessing an `int` member of a `stdx::tuple const &` gives an `int const &` and
9382
so on.

0 commit comments

Comments
 (0)