From 2c73470cf2ad011cc8fc576c14d7c761ec0bc997 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Sat, 5 Oct 2024 16:37:17 -0600 Subject: [PATCH] :books: :bug: Fix out-of-date tuple docs Closes #148 --- docs/tuple.adoc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/tuple.adoc b/docs/tuple.adoc index 18f15d2..2e0de8e 100644 --- a/docs/tuple.adoc +++ b/docs/tuple.adoc @@ -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); ----- - 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.