Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Qualify all calls to std::get #5556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fix overflow issues and remove an extraneous std:: in ranges.tex
  • Loading branch information
cor3ntin committed Jul 8, 2022
commit c91f7cc34130bd25f392058294f77a64bc00db09
2 changes: 1 addition & 1 deletion 2 source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8961,7 +8961,7 @@
\item
Otherwise, \tcode{true}
if there exists an integer $0 \leq i < \tcode{sizeof...(Views)}$
such that \tcode{bool(std::\brk{}std::get<$i$>(x.\exposid{current_}) ==
such that \tcode{bool(std::\brk{}get<$i$>(x.\exposid{current_}) ==
std::get<$i$>(y.\exposid{current_}))} is \tcode{true}.
\begin{note}
This allows \tcode{zip_view} to model \libconcept{common_range}
Expand Down
16 changes: 10 additions & 6 deletions 16 source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1799,8 +1799,8 @@

\pnum
\effects
Initializes the first element with \tcode{std::get<0>(\exposid{FWD}(u))} and
the second element with \tcode{std::get<1>(\exposid{FWD}(\brk{}u))}.
Initializes the first element with \tcode{std::get<0>(\exposid{FWD}(u))}\\
and the second element with \tcode{std::get<1>(\exposid{FWD}(\brk{}u))}.

\pnum
\remarks
Expand Down Expand Up @@ -2358,7 +2358,8 @@
template<class F, class Tuple, size_t... I>
constexpr decltype(auto) @\placeholdernc{apply-impl}@(F&& f, Tuple&& t, index_sequence<I...>) {
// \expos
return @\placeholdernc{INVOKE}@(std::forward<F>(f), std::get<I>(std::forward<Tuple>(t))...); // see \ref{func.require}
return @\placeholdernc{INVOKE}@(std::forward<F>(f), std::get<I>(std::forward<Tuple>(t))...);
// see \ref{func.require}
}
}
\end{codeblock}
Expand Down Expand Up @@ -5324,23 +5325,26 @@
\item
If \tcode{valueless_by_exception() \&\& rhs.valueless_by_exception()} no effect.
\item
Otherwise, if \tcode{index() == rhs.index()}, calls \tcode{swap(std::get<$i$>(*this), std::get<$i$>(rhs))} where $i$ is \tcode{index()}.
Otherwise, if \tcode{index() == rhs.index()},\\
calls \tcode{swap(std::get<$i$>(*this), std::get<$i$>(rhs))} where $i$ is \tcode{index()}.
\item
Otherwise, exchanges values of \tcode{rhs} and \tcode{*this}.
\end{itemize}

\pnum
\throws
If \tcode{index() == rhs.index()},
any exception thrown by \tcode{swap(std::get<$i$>(*this), std::get<$i$>(rhs))}
any exception thrown by\\
\tcode{swap(std::get<$i$>(*this), std::get<$i$>(rhs))}
with $i$ being \tcode{index()}.
Otherwise, any exception thrown by the move constructor
of $\tcode{T}_i$ or $\tcode{T}_j$
with $i$ being \tcode{index()} and $j$ being \tcode{rhs.index()}.

\pnum
\remarks
If an exception is thrown during the call to function \tcode{swap(std::get<$i$>(*this), std::get<$i$>(rhs))},
If an exception is thrown during the call to function\\
tcode{swap(std::get<$i$>(*this), std::get<$i$>(rhs))},
the states of the contained values of \tcode{*this} and of \tcode{rhs} are
determined by the exception safety guarantee of \tcode{swap} for lvalues of
$\tcode{T}_i$ with $i$ being \tcode{index()}.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.