File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1494
1494
two arguments is similar to an instantiation of \tcode{pair} with the same two arguments.
1495
1495
See~\ref{pairs}.
1496
1496
1497
+ \pnum
1498
+ In addition to being available via inclusion of the \libheader{tuple} header,
1499
+ \tcode{ignore}\iref{tuple.syn} is available when
1500
+ \libheader{utility}\iref{utility} is included.
1501
+
1497
1502
\rSec2[tuple.syn]{Header \tcode{<tuple>} synopsis}
1498
1503
1499
1504
\indexheader{tuple}%
1520
1525
template<@\exposconceptnc{tuple-like}@ TTuple, @\exposconceptnc{tuple-like}@ UTuple>
1521
1526
struct common_type<TTuple, UTuple>;
1522
1527
1523
- // \ref{tuple.creation}, tuple creation functions
1524
- inline constexpr @\unspec@ ignore;
1528
+ // \tcode{ignore}
1529
+ struct @\exposidnc{ignore-type}@ { // \expos
1530
+ constexpr const @\exposid{ignore-type}@
1531
+ operator=(const auto &) const noexcept { return *this; }
1532
+ };
1533
+ inline constexpr @\exposid{ignore-type}@ ignore;
1525
1534
1535
+ // \ref{tuple.creation}, tuple creation functions
1526
1536
template<class... TTypes>
1527
1537
constexpr tuple<unwrap_ref_decay_t<TTypes>...> make_tuple(TTypes&&...);
1528
1538
2591
2601
\begin{itemdescr}
2592
2602
\pnum
2593
2603
\returns
2594
- \tcode{tuple<TTypes\&...>(t...)}. When an
2595
- argument in \tcode{t} is \tcode{ignore}, assigning
2596
- any value to the corresponding tuple element has no effect.
2604
+ \tcode{tuple<TTypes\&...>(t...)}.
2597
2605
2598
2606
\pnum
2599
2607
\begin{example}
You can’t perform that action at this time.
0 commit comments