Skip to content

Commit

Permalink
[meta.type.synop,meta.help] Use \libglobal for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
Eelis authored and tkoeppe committed Oct 21, 2024
1 parent 8337cb6 commit 2a3292f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/meta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@
template<class T, T v> struct integral_constant;

template<bool B>
using bool_constant = integral_constant<bool, B>;
using true_type = bool_constant<true>;
using false_type = bool_constant<false>;
using @\libglobal{bool_constant}@ = integral_constant<bool, B>;
using @\libglobal{true_type}@ = bool_constant<true>;
using @\libglobal{false_type}@ = bool_constant<false>;

// \ref{meta.unary.cat}, primary type categories
template<class T> struct is_void;
Expand Down Expand Up @@ -595,7 +595,7 @@
\indexlibrarymember{value_type}{integral_constant}%
\begin{codeblock}
namespace std {
template<class T, T v> struct integral_constant {
template<class T, T v> struct @\libglobal{integral_constant}@ {
static constexpr T value = v;

using value_type = T;
Expand All @@ -607,7 +607,6 @@
}
\end{codeblock}

\indexlibraryglobal{integral_constant}%
\indexlibraryglobal{bool_constant}%
\indexlibraryglobal{true_type}%
\indexlibraryglobal{false_type}%
Expand Down

0 comments on commit 2a3292f

Please sign in to comment.