Skip to content

LWG Poll 7: P1048R1 A proposal for a type trait to detect scoped enumerations #4320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@
#define @\defnlibxname{cpp_lib_is_nothrow_convertible}@ 201806L // also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_is_null_pointer}@ 201309L // also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_is_pointer_interconvertible}@ 201907L // also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_is_scoped_enum}@ 202011L // also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_is_swappable}@ 201603L // also in \libheader{type_traits}
#define @\defnlibxname{cpp_lib_jthread}@ 201911L // also in \libheader{stop_token}, \libheader{thread}
#define @\defnlibxname{cpp_lib_latch}@ 201907L // also in \libheader{latch}
Expand Down
9 changes: 9 additions & 0 deletions source/utilities.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15938,6 +15938,7 @@
template<class T> struct is_unsigned;
template<class T> struct is_bounded_array;
template<class T> struct is_unbounded_array;
template<class T> struct is_scoped_enum;

template<class T, class... Args> struct is_constructible;
template<class T> struct is_default_constructible;
Expand Down Expand Up @@ -16187,6 +16188,8 @@
inline constexpr bool @\libglobal{is_bounded_array_v}@ = is_bounded_array<T>::value;
template<class T>
inline constexpr bool @\libglobal{is_unbounded_array_v}@ = is_unbounded_array<T>::value;
template<class T>
inline constexpr bool @\libglobal{is_scoped_enum_v}@ = is_scoped_enum<T>::value;
template<class T, class... Args>
inline constexpr bool @\libglobal{is_constructible_v}@ = is_constructible<T, Args...>::value;
template<class T>
Expand Down Expand Up @@ -16619,6 +16622,12 @@
\tcode{T} is an array type of unknown bound\iref{dcl.array}
& \\ \rowsep

\indexlibraryglobal{is_scoped_enum}%
\tcode{template<class T>}\br
\tcode{struct is_scoped_enum;} &
\tcode{T} is a scoped enumeration\iref{dcl.enum}
& \\ \rowsep

\indexlibraryglobal{is_constructible}%
\tcode{template<class T, class... Args>}\br
\tcode{struct is_constructible;} &
Expand Down