File tree Expand file tree Collapse file tree 1 file changed +24
-22
lines changed Expand file tree Collapse file tree 1 file changed +24
-22
lines changed Original file line number Diff line number Diff line change 6584
6584
\end {itemdecl }
6585
6585
6586
6586
\begin {itemdescr }
6587
- \pnum
6588
- \constantwhen
6589
- \tcode {item} represents a
6590
- type,
6591
- type alias,
6592
- variable,
6593
- function,
6594
- namespace,
6595
- enumerator,
6596
- direct base class relationship, or
6597
- non-static data member.
6598
-
6599
6587
\pnum
6600
6588
Let $ E$ be
6601
6589
\begin {itemize }
6656
6644
static_assert(annotations_of(^^x)[0] == annotations_of(^^y)[0]);
6657
6645
\end {codeblock }
6658
6646
\end {example }
6647
+
6648
+ \pnum
6649
+ \throws
6650
+ \tcode {meta::exception} unless
6651
+ \tcode {item} represents a
6652
+ type,
6653
+ type alias,
6654
+ variable,
6655
+ function,
6656
+ namespace,
6657
+ enumerator,
6658
+ direct base class relationship, or
6659
+ non-static data member.
6659
6660
\end {itemdescr }
6660
6661
6661
6662
\indexlibraryglobal {annotations_of_with_type}%
6664
6665
\end {itemdecl }
6665
6666
6666
6667
\begin {itemdescr }
6667
- \pnum
6668
- \constantwhen
6669
- \begin {itemize }
6670
- \item
6671
- \tcode {annotations_of(item)} is a constant expression and
6672
- \item
6673
- \tcode {dealias(type)} represents a type that is complete
6674
- from some point in the evaluation context.
6675
- \end {itemize }
6676
-
6677
6668
\pnum
6678
6669
\returns
6679
6670
A \tcode {vector} containing each element \tcode {e} of \tcode {annotations_of(item)}
6682
6673
remove_const(type_of(e)) == remove_const(type)
6683
6674
\end {codeblock }
6684
6675
is \tcode {true}, preserving their order.
6676
+
6677
+ \pnum
6678
+ \throws
6679
+ \tcode {meta::exception} unless
6680
+ \begin {itemize }
6681
+ \item
6682
+ \tcode {annotations_of(item)} is a constant expression and
6683
+ \item
6684
+ \tcode {dealias(type)} represents a type that is complete
6685
+ from some point in the evaluation context.
6686
+ \end {itemize }
6685
6687
\end {itemdescr }
6686
6688
6687
6689
\rSec 1[ratio]{Compile-time rational arithmetic}
You can’t perform that action at this time.
0 commit comments