Skip to content

Commit c7f854b

Browse files
jwakelytkoeppe
authored andcommitted
P1048R1 A proposal for a type trait to detect scoped enumerations
1 parent 24b7b30 commit c7f854b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

source/support.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@
630630
#define @\defnlibxname{cpp_lib_is_nothrow_convertible}@ 201806L // also in \libheader{type_traits}
631631
#define @\defnlibxname{cpp_lib_is_null_pointer}@ 201309L // also in \libheader{type_traits}
632632
#define @\defnlibxname{cpp_lib_is_pointer_interconvertible}@ 201907L // also in \libheader{type_traits}
633+
#define @\defnlibxname{cpp_lib_is_scoped_enum}@ 202011L // also in \libheader{type_traits}
633634
#define @\defnlibxname{cpp_lib_is_swappable}@ 201603L // also in \libheader{type_traits}
634635
#define @\defnlibxname{cpp_lib_jthread}@ 201911L // also in \libheader{stop_token}, \libheader{thread}
635636
#define @\defnlibxname{cpp_lib_latch}@ 201907L // also in \libheader{latch}

source/utilities.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15938,6 +15938,7 @@
1593815938
template<class T> struct is_unsigned;
1593915939
template<class T> struct is_bounded_array;
1594015940
template<class T> struct is_unbounded_array;
15941+
template<class T> struct is_scoped_enum;
1594115942

1594215943
template<class T, class... Args> struct is_constructible;
1594315944
template<class T> struct is_default_constructible;
@@ -16187,6 +16188,8 @@
1618716188
inline constexpr bool @\libglobal{is_bounded_array_v}@ = is_bounded_array<T>::value;
1618816189
template<class T>
1618916190
inline constexpr bool @\libglobal{is_unbounded_array_v}@ = is_unbounded_array<T>::value;
16191+
template<class T>
16192+
inline constexpr bool @\libglobal{is_scoped_enum_v}@ = is_scoped_enum<T>::value;
1619016193
template<class T, class... Args>
1619116194
inline constexpr bool @\libglobal{is_constructible_v}@ = is_constructible<T, Args...>::value;
1619216195
template<class T>
@@ -16619,6 +16622,12 @@
1661916622
\tcode{T} is an array type of unknown bound\iref{dcl.array}
1662016623
& \\ \rowsep
1662116624

16625+
\indexlibraryglobal{is_scoped_enum}%
16626+
\tcode{template<class T>}\br
16627+
\tcode{struct is_scoped_enum;} &
16628+
\tcode{T} is a scoped enumeration\iref{dcl.enum}
16629+
& \\ \rowsep
16630+
1662216631
\indexlibraryglobal{is_constructible}%
1662316632
\tcode{template<class T, class... Args>}\br
1662416633
\tcode{struct is_constructible;} &

0 commit comments

Comments
 (0)