Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The draft C++ Library Fundamentals Technical Specification

NotificationsYou must be signed in to change notification settings

cplusplus/fundamentals-ts

Repository files navigation

The draft C++ Library Fundamentals Technical Specification.

The draft can be viewed online at:https://cplusplus.github.io/fundamentals-ts/

This TS is written using a set ofcustom HTML elementsbased on thePolymer framework.

Style guide

This guide is intended to produce results compatible with the main C++standard, which is written in LaTeX.

Look for applicable<cxx-*> elements,and write semantic markup according tohttp://developers.whatwg.org/.

Generally use<code> rather than<samp>,<kbd>,<tt> or othermonospacing elements.<samp> could be useful for sample compilererror messages. Don't use<kbd> for code a user might enter: that'sjust<code>.

Use<em> for emphasis and<i> for text in another "voice", likecomments and technical terms.<dfn> is good for the defininginstance of a term, but not for subsequent uses. I may add a<cxx-term> element to call out uses of technical terms specifically,which will enable automatic cross-linking and indexing.

Use<var> for variables. There's tension between using it for allvariables, including function parameters, and only calling outmeta-variables used in documentation. I'm leaning toward onlymeta-variables, since marking up parameters requires a huge number oftags, which make it harder to read the source, and there's not muchreason to italicize normal variables. Most meta-variables will end upmarked up as<code><var>meta-variable</var></code>.

Very little text is bold, either with<strong> or<b>.

Any repeated markup structure should be abstracted out into a customelement in thehttps://github.com/cplusplus/html-doc-framework project.

Namespace formatting

Namespace contents are indented by 2 spaces, with one blank linebetween the namespace open and the first line of the contents.Multiple namespaces can be opened at the same indentation level, like:

namespacestd {namespaceexperimental {classcontents{};}// namespace experimental}// namespace std

Namespaces are only shown in header synopses, not around class orfunction definitions.

About

The draft C++ Library Fundamentals Technical Specification

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors9

Languages


[8]ページ先頭

©2009-2025 Movatter.jp