Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions docs/tuple.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ auto x_by_index2 = t[0_idx]; // equivalent
`_idx` is a user-defined literal in the `stdx::literals` namespace. It is
equivalent to using the `index` variable template.

`get` is also available as a member function on `stdx::tuple` and works either
by index or by type (using the `tag` variable template):
[source,cpp]
----
using namespace stdx::literals;
auto t = stdx::tuple{1, true};
auto x_by_index1 = t.get(index<0>);
auto x_by_index2 = t.get(0_idx);
auto x_by_type = t.get(tag<int>);
----

NOTE: All forms of access preserve the value category of the tuple; i.e.
accessing an `int` member of a `stdx::tuple const &` gives an `int const &` and
so on.
Expand Down