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 6577
6577
\end {itemdecl }
6578
6578
6579
6579
\begin {itemdescr }
6580
- \pnum
6581
- \constantwhen
6582
- \tcode {item} represents a
6583
- type,
6584
- type alias,
6585
- variable,
6586
- function,
6587
- namespace,
6588
- enumerator,
6589
- direct base class relationship, or
6590
- non-static data member.
6591
-
6592
6580
\pnum
6593
6581
Let $ E$ be
6594
6582
\begin {itemize }
6649
6637
static_assert(annotations_of(^^x)[0] == annotations_of(^^y)[0]);
6650
6638
\end {codeblock }
6651
6639
\end {example }
6640
+
6641
+ \pnum
6642
+ \throws
6643
+ \tcode {meta::exception} unless
6644
+ \tcode {item} represents a
6645
+ type,
6646
+ type alias,
6647
+ variable,
6648
+ function,
6649
+ namespace,
6650
+ enumerator,
6651
+ direct base class relationship, or
6652
+ non-static data member.
6652
6653
\end {itemdescr }
6653
6654
6654
6655
\indexlibraryglobal {annotations_of_with_type}%
6657
6658
\end {itemdecl }
6658
6659
6659
6660
\begin {itemdescr }
6660
- \pnum
6661
- \constantwhen
6662
- \begin {itemize }
6663
- \item
6664
- \tcode {annotations_of(item)} is a constant expression and
6665
- \item
6666
- \tcode {dealias(type)} represents a type that is complete
6667
- from some point in the evaluation context.
6668
- \end {itemize }
6669
-
6670
6661
\pnum
6671
6662
\returns
6672
6663
A \tcode {vector} containing each element \tcode {e} of \tcode {annotations_of(item)}
6675
6666
remove_const(type_of(e)) == remove_const(type)
6676
6667
\end {codeblock }
6677
6668
is \tcode {true}, preserving their order.
6669
+
6670
+ \pnum
6671
+ \throws
6672
+ \tcode {meta::exception} unless
6673
+ \begin {itemize }
6674
+ \item
6675
+ \tcode {annotations_of(item)} is a constant expression and
6676
+ \item
6677
+ \tcode {dealias(type)} represents a type that is complete
6678
+ from some point in the evaluation context.
6679
+ \end {itemize }
6678
6680
\end {itemdescr }
6679
6681
6680
6682
\rSec 1[ratio]{Compile-time rational arithmetic}
You can’t perform that action at this time.
0 commit comments