Skip to content

Commit f60170c

Browse files
committed
[meta.reflection.define.aggregate] Use the usual "synopsis"-style codeblock for the class definition
1 parent f2e173a commit f60170c

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

source/meta.tex

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5318,35 +5318,36 @@
53185318

53195319
\rSec2[meta.reflection.define.aggregate]{Reflection class definition generation}
53205320

5321-
\begin{itemdecl}
5322-
struct data_member_options {
5323-
struct @\exposid{name-type}@ { // \expos
5324-
template<class T>
5325-
requires @\libconcept{constructible_from}@<u8string, T>
5326-
consteval @\exposid{name-type}@(T&&);
5327-
5328-
template<class T>
5329-
requires @\libconcept{constructible_from}@<string, T>
5330-
consteval @\exposid{name-type}@(T&&);
5331-
5332-
private:
5333-
variant<u8string, string> @\exposid{contents}@; // \expos
5334-
};
5321+
\indexlibraryglobal{data_member_options}%
5322+
\begin{codeblock}
5323+
namespace std::meta {
5324+
struct data_member_options {
5325+
struct @\exposidnc{name-type}@ { // \expos
5326+
template<class T>
5327+
requires @\libconcept{constructible_from}@<u8string, T>
5328+
consteval @\exposid{name-type}@(T&&);
5329+
5330+
template<class T>
5331+
requires @\libconcept{constructible_from}@<string, T>
5332+
consteval @\exposid{name-type}@(T&&);
5333+
5334+
private:
5335+
variant<u8string, string> @\exposidnc{contents}@; // \expos
5336+
};
53355337

5336-
optional<@\exposid{name-type}@> name;
5337-
optional<int> alignment;
5338-
optional<int> bit_width;
5339-
bool no_unique_address = false;
5340-
};
5341-
\end{itemdecl}
5338+
optional<@\exposid{name-type}@> name;
5339+
optional<int> alignment;
5340+
optional<int> bit_width;
5341+
bool no_unique_address = false;
5342+
};
5343+
}
5344+
\end{codeblock}
53425345

5343-
\begin{itemdescr}
53445346
\pnum
53455347
The classes \tcode{data_member_options}
53465348
and \tcode{data_member_options::\brk{}\exposid{name-type}}
53475349
are consteval-only types\iref{basic.types.general},
53485350
and are not structural types\iref{temp.param}.
5349-
\end{itemdescr}
53505351

53515352
\begin{itemdecl}
53525353
template<class T>

0 commit comments

Comments
 (0)