File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff 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
7878equivalent 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-
9180NOTE: All forms of access preserve the value category of the tuple; i.e.
9281accessing an `int` member of a `stdx::tuple const &` gives an `int const &` and
9382so on.
You can’t perform that action at this time.
0 commit comments