File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 684
684
#define @\defnlibxname {cpp_lib_to_address}@ 201711L // also in \libheader {memory}
685
685
#define @\defnlibxname {cpp_lib_to_array}@ 201907L // also in \libheader {array}
686
686
#define @\defnlibxname {cpp_lib_to_chars}@ 201611L // also in \libheader {charconv}
687
+ #define @\defnlibxname {cpp_lib_to_underlying}@ 202102L // also in \libheader {utility}
687
688
#define @\defnlibxname {cpp_lib_transformation_trait_aliases}@ 201304L // also in \libheader {type_traits}
688
689
#define @\defnlibxname {cpp_lib_transparent_operators}@ 201510L // also in \libheader {memory}, \libheader {functional}
689
690
#define @\defnlibxname {cpp_lib_tuple_element_t}@ 201402L // also in \libheader {tuple}
Original file line number Diff line number Diff line change 95
95
template<class R, class T>
96
96
constexpr bool in_range(T t) noexcept;
97
97
98
+ // \ref{utility.underlying}, to_underlying
99
+ template<class T>
100
+ constexpr underlying_type_t<T> to_underlying(T value) noexcept;
101
+
98
102
// \ref{intseq}, compile-time integer sequences%
99
103
\indexlibraryglobal{index_sequence}%
100
104
\indexlibraryglobal{make_index_sequence}%
568
572
\tcode{bool}.
569
573
\end{note}
570
574
575
+ \rSec2[utility.underlying]{Function template \tcode{to_underlying}}
576
+
577
+ \begin{itemdecl}
578
+ template<class T>
579
+ constexpr underlying_type_t<T> to_underlying(T value) noexcept;
580
+ \end{itemdecl}
581
+
582
+ \begin{itemdescr}
583
+ \pnum
584
+ \returns
585
+ \tcode{static_cast<underlying_type_t<T>>(value)}.
586
+ \end{itemdescr}
587
+
588
+
571
589
\rSec1[intseq]{Compile-time integer sequences}
572
590
573
591
\rSec2[intseq.general]{In general}
You can’t perform that action at this time.
0 commit comments