§The Annotated C++ StandardC++ 标准注疏 中文

Glossary

Terms of the standard with short definitions and the Chinese term used on the Chinese edition. Terms with a dotted underline in the text show their definition on hover.

abandon (a shared state)放弃(共享状态)[futures.state]/7

An asynchronous provider stores a future_error with error condition broken_promise into a shared state that is not ready, makes it ready, and then releases the shared state; the destructors of promise and packaged_task do this.

abbreviated function template简写函数模板[dcl.fct]/23

A function declaration whose parameter types contain auto or C auto placeholders (C++20), equivalent to a function template that introduces an invented type template parameter for each placeholder.

ABI tag (simd)ABI 标签(simd)[simd.expos.abi]/1

A type indicating the size and binary representation of a data-parallel object; together with the element type it determines the width. native-abi is an implementation-defined tag that is the most efficient for the target platform, and deduce-abi-t gives a tag with width N.

abominable function type可憎的函数类型[dcl.fct]/11

The community's name for a function type with cv- or ref-qualifiers (such as int(int) const); it can be used only as a member function type, the pointee type of a pointer to member, in a typedef, as a type template argument, and as an operand of reflection.

abstract class抽象类[class.abstract]/4

A class that has at least one pure virtual function whose final overrider is still pure virtual; no complete objects of it can be created, it can only exist as a base class subobject.

abstract declarator抽象声明符[dcl.name]/1

A declarator with the name omitted, used in type-ids and unnamed parameters, e.g. (*)[3] in int (*)[3]; the position where the name would appear is uniquely determined.

abstract machine抽象机[intro.abstract]/1

The parameterized, nondeterministic machine defined by the standard's semantic descriptions. Implementation-defined behavior gives its parameters and unspecified behavior introduces nondeterminism; an implementation need only emulate its observable behavior.

access访问[defns.access]

(Execution-time action) Reading or modifying the value of an object. Only glvalues of scalar type can access objects; copying a class object calls a constructor or assignment operator and is not itself an access.

access context访问语境[meta.reflection.access.context]/1

A value of std::meta::access_context: consisting of a scope (a namespace, class, or function, or the null reflection) and a designating class, which determines from which location's access permissions reflection member queries are performed; constructed by current(), unprivileged(), unchecked(), and via().

accessible base class可访问基类[class.access.base]/4

A base class (transitively) for which, at a given program point, an invented public member of the base would be accessible as a member of the derived class; the implicit derived-to-base conversion requires the base class to be accessible.

accessible range可访问范围[mdspan.accessor.general]/2

For a given data handle and accessor, [0, N) is its accessible range if the access function yields a valid reference for every i ∈ [0, N). A precondition of the mdspan constructors requires [0, required_span_size()) to be an accessible range.

accessor policy访问器策略[mdspan.accessor.general]/1

A type specifying how to obtain an element reference from a data handle p and offset i (access(p, i)) and how to advance the handle (offset(p, i)); the data handle need not be a pointer, nor the reference T&.

acquire a value representation获得值表示[basic.types.trivial]/1

For an object of trivially copyable type, its value is replaced by an unspecified value, from the subset of values corresponding to that value representation, that gives the program defined behavior (an angelic choice). Caused by operations such as a memcpy round trip or bit_cast.

active (block variable)活跃(块变量)[stmt.dcl]/2

A block variable with automatic storage duration is active at positions within its scope after its init-declarator. When control transfers from P to Q, variables active at P but not at Q are destroyed, and those active at Q but not at P are initialized; if the latter initialization is not vacuous, the transfer must not be a jump.

active (macro definition)活跃的宏定义[cpp.import]/5

A macro definition that has a point of definition before a given position and no point of undefinition before it. Multiple active macro definitions of the same name must be valid redefinitions of each other when the macro is replaced or redefined.

active (using-directive)活跃的 using 指令[basic.lookup.unqual]/1

In scope S at program point P, a using-directive that precedes P and inhabits S or a namespace nominated by a using-directive that is active in S. This definition makes using-directives transitive.

active handler活动的 handler[except.handle]/9

A handler from the completion of the initialization of the catch clause's parameter until the catch clause exits; when std::terminate is entered due to a throw, an implicit handler is considered active.

active member (of a union)活跃成员[class.union.general]/2

The non-static data member of a union whose named object is currently within its lifetime; at most one at any time. Reading an inactive member is UB.

address-free地址无关[atomics.lockfree]/5

Atomic operations still communicate atomically when the same memory location is accessed via two different addresses, without depending on per-process state; this is the prerequisite for using atomic objects in memory shared between processes. Lock-free operations should be address-free (recommended practice).

addressable function可寻址函数[namespace.std]/6

A standard library function explicitly designated as one whose address may be taken (such as the iostream manipulators std::endl, std::hex, and the functions in ). Forming a pointer, reference, or pointer to member to any other standard library function has unspecified behavior (possibly ill-formed).

aggregate聚合[dcl.init.aggr]/1

An array, or a class with no user-declared or inherited constructors, no private/protected direct non-static data members or direct base classes, and no virtual functions or virtual base classes. Aggregate initialization does not go through constructors; it initializes element by element.

aggregate base聚合基[dcl.init.aggr]/4

The aggregate class D itself, or a direct base class of some aggregate base of D (recursively). In the current draft, designators can name members of an aggregate base.

aggregate deduction candidate聚合推导候选[over.match.class.deduct]/1

Since C++20, for an aggregate class template without deduction guides, a guide generated from the types of the aggregate elements corresponding to the elements of the initializer, allowing aggregates to use CTAD too.

algorithm function object算法函数对象[alg.func.obj]/1

A customization point object specified as a set of overloaded function templates (such as std::ranges::find, colloquially a niebloid). Calling it is expression-equivalent to calling that set of function templates; it is not found by ADL, and suppresses ADL when found by unqualified lookup.

alias template别名模板[temp.alias]/1

The name of a family of types declared by template<...> using N = type;; its specializations are equivalent to the substituted types, it cannot be specialized, and it cannot be deduced from a type.

alignment对齐[basic.align]/1

An implementation-defined integer (always a power of 2) representing the spacing between successive addresses at which objects of a type can be allocated; creating an object in storage that does not satisfy the alignment is UB.

alignment-specifier对齐说明符[dcl.align]/1

alignas(constant-expression) or alignas(type), applied to variables, data members, and classes; the strictest non-zero alignment among all specifiers is used, and it cannot be weaker than the natural alignment.

allocated type被分配类型[expr.new]/1

The type of the object a new-expression attempts to create; it must be a complete object type and not an abstract class (or array thereof). It determines whether operator new or operator new[] is called, regardless of how the expression is written.

allocation function分配函数[basic.stc.dynamic.allocation]/1

A function named operator new / operator new[]: returns void* and its first parameter is std::size_t; on success it returns storage that is large enough and suitably aligned, on failure it throws std::bad_alloc (the noexcept versions return null).

allocator completeness requirements分配器完整性要求[allocator.requirements.completeness]/1

Whether or not T is complete, the allocator class X and the member types of allocator_traits other than value_type are complete types. This is the prerequisite for vector/list/forward_list being allowed to be instantiated with incomplete types.

allocator-aware container分配器感知容器[container.alloc.reqmts]/1

A container that obtains memory and constructs/destroys elements through an allocator via allocator_traits, meeting [container.alloc.reqmts]: copy construction uses select_on_container_copy_construction, and the allocator is replaced on assignment or swap only if POCCA/POCMA/POCS is true. All containers in this clause except array and inplace_vector are.

alternative (of a variant)(variant 的)候选类型[variant.general]/1

Each type in the template arguments Types of variant<Types...>; when a variant holds a value, the type of that value must be one of them. The same type may appear more than once, in which case only indices can distinguish them.

alternative token替代记号[lex.digraph]/2

An alternative spelling of certain operators and punctuators, such as <% ({), <: ([), %: (#), and (&&), compl (~). Apart from its stringized form it is exactly the same as the primary token.

ambiguous conversion sequence歧义转换序列[over.best.ics.general]/12

The single designated sequence used when there are multiple well-formed implicit conversion sequences from an argument to a parameter; for ranking it is treated as indistinguishable from any user-defined conversion sequence, and if the function is selected the call is ill-formed.

annotation注解[dcl.attr.annotation]/1

C++26's [[=constant-expression]]: a compile-time constant attached to a declaration or base-specifier that can be read through reflection (std::meta::annotations_of); each annotation is unique, and substitution into an annotation is not in an immediate context.

anonymous union匿名联合体[class.union.anon]/1

A union of the form union { ... };, which defines both an unnamed type and its single unnamed object; the member names are bound in the enclosing scope, and it may have only public non-static data members.

appearance-ordered出现顺序先于[basic.start.dynamic]/2

Declaration D precedes E in the same TU, or the TU containing E has an interface dependency on the TU containing D and D comes first; used to determine the order of dynamic initialization.

appertain归属[dcl.init.aggr]/15

The correspondence between the initializer-clauses in a braced list and the aggregate elements (or subaggregate elements); when a clause does not begin with { and cannot be converted to the subaggregate type, the appertainment analysis "drills into" the subaggregate, and this is brace elision.

argument forwarding call wrapper参数转发调用包装器[func.require]/3

A call wrapper that accepts an arbitrary argument list and forwards the call arguments by reference (rvalues as rvalue references, lvalues as lvalue references), such as the return value of bind.

argument-dependent lookup (ADL)实参依赖查找[basic.lookup.argdep]/1

In an unqualified function call, if ordinary lookup finds no class member, block-scope function declaration, or non-function, then functions are additionally searched for in the associated namespaces of the argument types, and friends of associated classes are collected.

arithmetic expression算术表达式[expr.pre]/4

A unary +/-, additive, or multiplicative expression all of whose operands are of arithmetic type. If its mathematical result is neither within the range of representable values of its type nor ±∞ or NaN of that type, the behavior is undefined.

arithmetic type算术类型[basic.fundamental]/14

Collective name for integral and floating-point types.

array bound数组边界[dcl.array]/1

The number of elements N of an array, given by a converted constant expression of type std::size_t, which must be greater than zero; an array of unknown bound T[] is an incomplete type.

array delete expression数组 delete 表达式[expr.delete]/1

A delete-expression of the form delete[] p; the operand must be a null pointer or the result of an array new (not a non-allocating form), and the dynamic type must be similar to the static type, otherwise UB.

as-if ruleas-if 规则[intro.abstract]/1

An implementation may disregard any requirement of the standard as long as the observable behavior is consistent with some possible execution of the abstract machine (footnote in [intro.abstract]). Nearly all compiler optimizations rely on it.

as-variantas-variant[variant.visit]/1

An exposition-only function template in the specification of std::visit that accepts the four reference forms of variant<Ts...> and returns them unchanged; through template argument deduction it lets a class uniquely derived from a variant specialization also be visited by visit (C++23, P2162R2).

associated constraints关联约束[temp.constr.decl]/3

All the constraints of a declaration: the normal form of the conjunction formed, in order, by type-constraints, the requires-clause, type-constraints in function parameters, and the trailing requires-clause.

associated entities关联实体[basic.lookup.argdep]/3

A set of classes, enumerations, and templates determined by the argument types of a function call (such as the class itself, the class it is a member of, base classes, and the associated entities of template type arguments); typedefs do not affect it.

associated namespaces关联命名空间[basic.lookup.argdep]/4

The innermost enclosing non-inline namespaces of the associated entities, together with their inline namespace sets; ADL searches in them.

associated output关联输出(syncbuf)[syncstream.syncbuf.overview]/1

The characters accumulated by basic_syncbuf in its internal buffer; they are transferred to the wrapped stream buffer as a whole, atomically, only on emit() or destruction, so output does not interleave when multiple threads each write to the same stream through their own osyncstream.

associative container(有序)关联容器[associative.reqmts.general]/1

A container that organizes elements by key using a comparison object that induces a strict weak ordering, providing logarithmic-time lookup: set, multiset, map, multimap; iteration is in non-descending order of keys.

assumption假设[dcl.attr.assume]/1

An empty statement with [[assume(expr)]]. The expression is not evaluated but is potentially evaluated; if it would evaluate to true at that point, it has no effect; otherwise, evaluating the assumption has runtime-undefined behavior.

async lifetime异步生存期[exec.async.ops]/7

The lifetime of an asynchronous operation: from the beginning of the execution of its start operation until the beginning of the execution of its completion operation. If the lifetime of the operation state ends before it, the behavior is undefined; the operation state may be destroyed during the execution of the completion operation.

async result异步结果[exec.async.ops]/2

The completion disposition of an asynchronous operation (value / error / stopped) together with its result datums. A value completion can carry any number of datums, an error completion exactly one, and a stopped completion none.

async scope异步作用域[exec.scope.concepts]/3

An object that tracks a set of asynchronous operations associated with it (associations), such as counting_scope; it can join to wait for all associated operations to finish, and can close to refuse new associations. spawn, spawn_future, and associate establish associations with it through scope tokens.

asynchronous operation异步操作[exec.async.ops]/2

A unit of program execution that is explicitly created, explicitly started at most once, and once started eventually completes exactly once; it completes with a set of result datums and a disposition that is one of success (value), failure (error), or cancellation (stopped). It may complete on a different execution resource and may create child operations.

asynchronous provider异步提供者[futures.state]/4

An object that provides a result to a shared state, such as promise and packaged_task. When an asynchronous provider is destroyed without having provided a result, it abandons the shared state, storing a broken_promise error.

asynchronous return object异步返回对象[futures.state]/3

An object that reads a result from a shared state, such as future and shared_future; its member functions that may block waiting for the shared state to become ready are called waiting functions.

at least as specialized as至少一样特殊[temp.deduct.partial]/10

In partial ordering, function template F is at least as specialized as G if, for each pair of types used for ordering, F's type is at least as specialized as G's (deducing G from F's transformed type succeeds); if the converse does not hold, F is more specialized.

atomic constraint原子约束[temp.constr.atomic]/1

A constraint consisting of an expression and a parameter mapping. Two atomic constraints are identical if and only if they come from the same appearance of the same expression and their mappings are equivalent; when it is checked for satisfaction, the expression must be a constant expression of exactly type bool.

atomic modify-write operation原子 modify-write 操作[atomics.order]/12

An atomic read-modify-write operation with weaker synchronization requirements (such as store_add, store_max) that does not return the old value, cannot act as the reading side in fence synchronization, and does not count as an execution step; intended to be implemented with hardware mechanisms that are not ordered by acquire fences.

atomic waiting operation原子等待操作[atomics.wait]/1

The wait of atomic, atomic_ref, atomic_flag and their non-member versions: repeatedly reads the atomic object and compares it with the old value by value representation; if equal it blocks until unblocked by an atomic notifying operation or spuriously.

attached (to a module)附属(于模块)[module.unit]/7

Every declaration is attached to one module: declarations of namespaces, of type/namespace aliases, and within a language linkage specification are attached to the global module; a friend that names an existing entity follows the named entity; the rest follow the purview they appear in. Same-named entities attached to different modules are different entities.

attributes (of a sender)发送器属性[exec.async.ops]/12

A queryable object associated with a sender that describes the characteristics of the sender and the asynchronous operations it produces, obtained with get_env(sndr), such as the completion scheduler or completion domain. Note that it is not the environment on the receiver side.

automatic indexing自动编号[format.string.general]/4

When all arg-ids in a format string (including those nested in a format-spec) are omitted, arguments 0, 1, 2, … are used in order; mixing this with manual numbering makes it not a format string.

automatic storage duration自动存储期[basic.stc.auto]/1

The storage duration of block-scope variables (not static/thread_local/extern) and of function parameters, lasting until the block exits (parameters: until after they are destroyed).

awaitable (in [exec])可等待体(执行库意义)[exec.awaitable]/1

An expression that can be the operand of co_await in a given context. The sender concepts recognize awaitables as senders, whose completion signatures are set_value_t(await-result), set_error_t(exception_ptr), set_stopped_t().

backing arraybacking array(后备数组)[dcl.init.list]/5

The const E[N] array generated by the implementation when constructing a std::initializer_list<E>, whose elements are copy-initialized from the list elements; its lifetime rules are the same as for a temporary bound to a reference, and since C++26 it is a potentially non-unique object.

barrier phasebarrier 阶段[thread.barrier.class]/1

A segment of a barrier's lifetime: once the expected count has been decremented to zero by arrive/arrive_and_drop, a phase completion step is executed once, the count is reset, and the next phase begins.

base characteristic基特征[meta.rqmts]/1

The specialization of integral_constant from which a unary/binary type trait is publicly and unambiguously derived (directly or indirectly); the trait's value, type, and value_type all come from it, but the trait itself is a different type.

base class subobject基类子对象[class.derived.general]/3

The subobject of a derived class object corresponding to a given base class; its allocation order within the most derived object is unspecified, and it may have zero size.

basic character set基本字符集[lex.charset]/2

A 99-character subset of the translation character set: the 95 printable ASCII characters plus horizontal tab, vertical tab, form feed, and new-line. Since C++26 it includes $, @, and `.

basic literal character set基本字面量字符集[lex.charset]/3

The basic character set plus the four control characters NUL, BEL, BS, CR. Every literal encoding must encode each of them as a single non-negative code unit.

begin() cachingbegin 缓存[range.filter.view]/5

To meet the range concept's requirement that "begin is amortized O(1)", filter_view, drop_view, drop_while_view, reverse_view, split_view, chunk_by_view, etc. compute and cache the result on the first begin(); consequently they (usually) have no const begin(), and modifying the underlying range after caching yields stale results.

best viable function最佳可行函数[over.match.best.general]/2

The viable function that is better than all other viable functions: the ICS for no argument is worse, and either some argument's ICS is better or some tie-breaker rule applies ([over.match.best]). If there is none, or it is not unique, the call is ill-formed.

big-endian大端[bit.endian]/1

A byte order in which the most significant byte of a multi-byte scalar comes first in storage, with the remaining bytes in descending order of significance.

binary fold二元折叠[expr.prim.fold]/3

A fold expression of the form (e1 op ... op e2), where both operators are the same and exactly one side contains a pack; with the pack on the right it is a binary left fold, with the pack on the left a binary right fold, and with an empty pack the result is the initial value.

binary operator function二元运算符函数[over.binary.general]/1

A function named operator@ (where @ is a binary operator): either a non-static member function with exactly one non-object parameter, or a non-member function with exactly two parameters.

bind directly直接绑定[dcl.init.ref]/5

In reference initialization, all cases other than "implicitly convert the initializer to the referenced type and then materialize" ([dcl.init.ref] ¶5.4.2). Affects the implicit conversion sequence for reference binding in overload resolution.

bit value位值[template.bitset.general]/2

When converting between a bitset and an integer, the integer value 1 << pos corresponding to position pos; the integer value corresponding to multiple bits is the sum of their bit values. Bit 0 is the least significant bit.

bit-field位域[class.bit]/1

A non-static data member of integral or enumeration type declared with : width; its layout and alignment are implementation-defined, its address cannot be taken, and a non-const reference cannot bind to it.

bitmask type位掩码类型[bitmask.types]/1

A library type that can be implemented as an enumeration with overloaded bitwise operators, an integer type, or a bitset (such as ios_base::fmtflags). Only its elements and operations such as &, |, ^, ~ can be relied upon; set/clear/is set have precise definitions.

block with forward progress guarantee delegation带前进保证委托的阻塞[intro.progress]/13

When thread P blocks waiting on a set of threads S, the implementation must ensure that the forward progress guarantee of at least one thread in S is no weaker than P's; sync_wait and parallel algorithms both block this way.

boolean-testable可布尔测试[concept.booleantestable]/1

Exposition-only concept: the type is convertible to bool, and the result of !e is also convertible to bool; semantically it also requires that ! really negates, and that lookup such as ADL finds no "disqualifying declarations" hijacking && and ||, so the logical operators resolve to the built-in operators.

borrowed range借用 range[range.range]/4

A range whose iterators' validity does not depend on the lifetime of the range object itself (e.g. span, string_view, lvalue references). Ranges algorithms return real iterators rather than ranges::dangling for rvalue borrowed ranges.

bound argument entities绑定实参实体[func.def]/7

A sequence of objects and references additionally held by a call wrapper and passed to the target along with the call, such as 1 and 2 in bind_front(f, 1, 2).

bound-entity绑定实体(bound-entity)[func.wrap.ref.class]/1

An exposition-only member of function_ref: a value of an unspecified trivially copyable type, storing an object pointer or function pointer, passed together with the arguments to thunk-ptr on invocation.

brace elision花括号省略[dcl.init.aggr]/15

Omitting the outer braces of subaggregates in aggregate initialization, as in int a[2][2] = {1, 2, 3, 4};. It is implemented by the "appertain" rule; there is no brace elision in parenthesized aggregate initialization.

bucket桶[unord.req.general]/9

The unit in which an unordered container organizes its elements: keys with the same hash value are in the same bucket; the number of buckets grows automatically on insertion so that the average number of elements per bucket does not exceed the maximum load factor.

built-in candidate内建候选[over.match.oper]/3

A hypothetical function representing a built-in operator in operator overload resolution ([over.built]), so that built-in operations after user-defined conversions can be compared on the same footing as user-defined operators.

byte字节[intro.memory]/1

The fundamental storage unit of the C++ memory model, consisting of a contiguous sequence of an implementation-defined number of bits (CHAR_BIT, at least 8); each byte has a unique address.

C headersC 头文件[support.c.headers.general]/1

Headers of the form <name.h>, such as <stdio.h>, provided only for C interoperability; they guarantee to place names in the global namespace, whereas <cname> guarantees to place them in std.

call pattern调用模式[func.require]/5

The expression defining the call semantics of a perfect forwarding call wrapper, such as invoke(fd, bound_args..., call_args...); an actual call is expression-equivalent to that expression with its entities replaced by the forwarded references.

call signature调用签名[func.def]/2

The name of a return type followed by a parenthesized, comma-separated list of zero or more argument types, such as int(double, char).

call wrapper调用包装器[func.def]/5

An object of a type (a call wrapper type) that holds a target object and supports forwarding calls to it; it at least meets Cpp17MoveConstructible and Cpp17Destructible.

call-compatible调用兼容[expr.call]/6

Function types Tcall and Tfunc are the same, or "pointer to Tfunc" can be converted to "pointer to Tcall" by a function pointer conversion (removing noexcept). Calling a function through a function type that is not call-compatible is UB.

callable type可调用类型[func.def]/3

A function object type or a pointer-to-member type; objects of such a type are called callable objects and are uniformly invoked through INVOKE.

candidate function候选函数[over.match.general]/1

A member of the set of functions participating in overload resolution in a given call context; built by name lookup, template argument deduction, and context-specific rules ([over.match.funcs]).

candidate initializer候选初始化器[temp.arg.nontype]/3

The id-expression of an invented temporary variable constexpr T v = A; used to determine the value of a constant template parameter of class type (or with braced initialization); the template parameter object is copy-initialized from a candidate initializer that is template-argument-equivalent to it.

captured by copy按值捕获[expr.prim.lambda.capture]/10

A non-*this entity implicitly captured by [=], or an entity explicitly captured with a form other than & or this; an unnamed non-static data member is declared for it in the closure.

captured by reference按引用捕获[expr.prim.lambda.capture]/12

An entity that is captured but not captured by copy; whether members are declared for it in the closure is unspecified. Bit-fields and anonymous union members cannot be captured by reference.

casts away constness去掉常量性[expr.const.cast]/6

Apply the cv-qualifiers at each level of the target type to the qualification decomposition of the source type; if the resulting type cannot be obtained from the source type by a qualification conversion, the conversion casts away constness; e.g. const int* → int*, and also int** → const int**. Only const_cast and C-style casts can do this.

category tag(迭代器)类别标签[std.iterator.tags]/1

The six empty classes such as input_iterator_tag, which express the inclusion relations between categories through inheritance; iterators declare them via iterator_traits<I>::iterator_category (and iterator_concept), used for compile-time tag dispatch.

char-like type类字符类型[strings.general]/1

A non-array, trivially copyable, standard-layout, trivially default constructible type; its objects are called char-like objects or "characters", and it is the element type of basic_string/basic_string_view. Broader than the core language's "character types"; it can be a user-defined struct.

character string literal字符串字面量(无前缀)[cpp.stringize]/2

A string-literal with no encoding prefix. The # operator produces one, and the file name in #line must be one.

character traits字符 traits[char.traits.require]/1

A class providing members such as eq/lt/compare/length/find/copy/move/assign and int_type/eof() for some character type, used as the traits template argument of basic_string, basic_string_view, and iostreams; its char_type must be the same as the character type, and the expressions in the requirements table must not throw exceptions.

character type字符类型[basic.fundamental]/11

Collective name for char, wchar_t, char8_t, char16_t, char32_t; it does not include signed char or unsigned char.

checked integer operation检查整数运算[numerics.c.ckdint]/1

C23 's ckd_add, ckd_sub, ckd_mul: compute a op b as if with infinite precision, write the result modulo-wrapped into *result, and return whether the mathematical result cannot be represented in the type of *result (i.e. whether it overflowed). In C++, all three types are required to be signed or unsigned integer types.

child operation子操作[exec.async.ops]/2

An asynchronous operation created by another asynchronous operation (the parent operation); if started, it must complete before the parent operation completes. This is the basis of structured concurrency in std::execution.

class definition类定义[class.pre]/2

A class-specifier, i.e. class-head { member-specification }. Once the closing brace is seen, the class is regarded as defined (complete).

class template类模板[temp.class.general]/1

A template that specifies the layout and operations of an unbounded set of related types; each specialization is a distinct class type.

closure object闭包对象[expr.prim.lambda.general]/2

The result object of a lambda expression (a prvalue), i.e. an instance of the closure type.

closure type闭包类型[expr.prim.lambda.closure]/1

The type of a lambda expression: a unique, unnamed non-union class that is not an aggregate and not final; it contains a function call operator and unnamed data members corresponding to the by-copy captures.

code unitcode unit(码元)[lex.charset]/4

An integer value of character type. The characters in a literal are encoded as one or more code units according to its literal encoding.

coherence-ordered before一致性序先于[atomics.order]/3

A relation between two atomic operations on the same atomic object: A is a modification read by B, A precedes B in the modification order, A reads a modification that precedes B, or it holds transitively through modifications. The single total order S of seq_cst must be consistent with it.

common comparison type公共比较类型[class.spaceship]/4

The "weakest" of a set of comparison categories: partial_ordering if present, otherwise weak_ordering if present, otherwise (including the empty list) strong_ordering. A defaulted <=> with auto return type deduces to it.

common initial sequence公共初始序列[class.mem.general]/27

For two standard-layout structs, the longest sequence of members, starting from the first, in which corresponding members are layout-compatible and have the same alignment (and are either both not bit-fields or bit-fields of the same width); it may be read through an inactive member of a union.

common range公共范围[range.refinements]/4

A range for which ranges::begin and ranges::end return the same type (iterator_t<R> and sentinel_t<R> are the same); C++17-style iterator-pair interfaces require it, and views::common can turn a view into one.

common reference type公共引用类型[concept.commonref]/1

If common_reference_t is well-formed and is C, and convertible_to from both T and U to C is modeled, then C is the common reference type of T and U; designed to treat "references" and "values" uniformly for proxy iterators.

common type公共类型[concept.common]/1

If T and U can both be explicitly converted to some third type C, then C is their common type; it is not necessarily unique. common_with selects it via common_type_t and adds compatibility requirements with the common reference.

comparison category type比较类别类型[expr.spaceship]/8

The three class types std::strong_ordering, std::weak_ordering, std::partial_ordering, used as the result types of <=>. They are not predefined: their declarations from <compare> must be available before using the built-in <=>, otherwise the program is ill-formed.

comparison object比较对象[associative.reqmts.general]/2

The object of type Compare in an ordered associative container; it must induce a strict weak ordering and always return the same result for the same pair of keys. Two keys are equivalent if and only if comp(k1,k2) and comp(k2,k1) are both false.

comparison operator function比较运算符函数[over.binary.general]/2

Collective name for equality operator functions (==, !=), relational operator functions (<, >, <=, >=), and three-way comparison operator functions (<=>); they can be defaulted.

compatible with (pointer types)(指针类型)兼容[util.smartptr.shared.general]/6

In the smart pointer clauses, Y* is compatible with T* if Y* is convertible to T*, or Y is U[N] and T is cv U[]. The converting constructors and assignments of shared_ptr/weak_ptr are constrained on this.

complete object完整对象[intro.object]/2

An object that is not a subobject of any other object. The complete object of an object x is the complete object reached by following the subobject relation all the way up.

complete-class context完整类上下文[class.mem.general]/10

Function bodies, default arguments, default template arguments, noexcept specifiers, contract specifiers, and default member initializers within a class's member-specification; within them all members of the class are visible and the class is regarded as complete.

completion function完成函数[exec.async.ops]/6

The three customization point objects set_value, set_error, set_stopped, whose first argument is the receiver (which must be a non-const rvalue) and whose remaining arguments are the result datums; calling one notifies the receiver that the asynchronous operation has completed. A valid invocation of one is called a completion operation.

completion scheduler完成调度器[exec.async.ops]/11

A scheduler whose execution resource is used to execute the completion operations of a given disposition. A sender can report it through queries on its attributes such as get_completion_scheduler; once reported, completing elsewhere is UB.

completion signature完成签名[exec.async.ops]/13

A function type describing one kind of completion operation, of the form set_value_t(Vs...), set_error_t(E), set_stopped_t(). The sender type together with the environment type determines the set of all possible completion signatures of the asynchronous operation, represented by completion_signatures<...>.

completion tag完成标签[exec.async.ops]/6

The unqualified type of a completion function: set_value_t, set_error_t, set_stopped_t. Completion signatures use it as the return type, e.g. set_value_t(int).

component name组成名字[expr.prim.id.unqual]/2

The individual names in a construct that need to be looked up, such as N, C, f in N::C<int>::f; used to describe qualified name lookup uniformly.

composite pointer type复合指针类型[expr.type]/3

The common type to which two pointer (or pointer-to-member, std::nullptr_t) operands are uniformly converted, used by ==, <, <=>, ?:, etc.; determined in order by null pointer constants, void*, noexcept, base/derived, and similar types.

compound assignment复合赋值[expr.assign]/6

E1 op= E2, equivalent to E1 = E1 op E2 except that E1 is evaluated only once. With respect to an indeterminately-sequenced function call it is a single evaluation; the result is an lvalue referring to E1.

compound statement (block)复合语句(块)[stmt.block]/1

{ ... }, which groups a sequence of statements into one statement and introduces a block scope; since C++23 it may end with a label.

compound type复合类型[basic.compound]/1

A type constructed from other types: arrays, functions, pointers, references, classes, unions, enumerations, pointers to members.

concept-dependent constraint概念依赖约束[temp.constr.concept]/1

An atomic constraint whose expression is a concept-id whose concept is dependent (a concept template parameter); its normalization is deferred until instantiation, and it makes the enclosing declaration not eligible for subsumption (C++26).

concept-id概念标识[temp.names]/15

A simple-template-id whose template-name is a concept name, such as std::integral<int>. It is a prvalue of type bool and does not name any specialization; it is true when the normalized constraint of the concept is satisfied.

concurrent forward progress guarantee并发前进保证[intro.progress]/6

As long as the thread has not terminated, the implementation guarantees that it will eventually make progress. General-purpose implementations should provide this guarantee for std::thread.

conditional escape sequence条件转义序列[lex.ccon]/3

A backslash followed by a basic character that has not been given a meaning (such as \q, \e). Conditionally-supported, with an implementation-defined value.

conditionally explicit条件 explicit[pairs.pair]/10

explicit(see below) in the library wording: whether a constructor is explicit is determined by a compile-time condition (implemented with explicit(bool) since C++20), usually "if and only if the corresponding conversion for some element is not implicit", making the implicit convertibility of a wrapper type consistent with its elements.

conditionally-supported有条件支持的[defns.cond.supp]

A program construct that an implementation is not required to support; if unsupported, a program using it must be diagnosed, and the implementation must document the constructs of this kind it does not support. E.g. asm declarations, conversions between function pointers and object pointers.

conditionally-supported-directive条件支持的指令[cpp.pre]/3

A directive whose token after # does not begin with any standard directive name (e.g. #ident, #assert). It is conditionally-supported with implementation-defined semantics; whether or not the implementation supports it, it counts as a preprocessing directive.

conflict冲突[intro.races]/2

Two evaluations access the same memory location and at least one of them modifies it (or starts/ends an object's lifetime). It is a conflict even if the modification changes no bits.

const objectconst 对象[basic.type.qualifier]/1

An object of type const T, or a non-mutable subobject of a const object; modifying it is UB.

const-default-constructibleconst 可默认构造[dcl.init.general]/7

The condition on a type that permits default-initializing a const object: default-initialization would call a user-provided constructor, or every member has a default member initializer or itself satisfies the condition, etc. const int x; does not satisfy it.

constant destruction常量析构[expr.const.defns]/3

The object is not of class type, or its class has a constexpr destructor and a hypothetical expression destroying it is a core constant expression (treating the lifetimes of its non-mutable subobjects as beginning within that expression). A constexpr variable must have constant destruction.

constant expression常量表达式[expr.const.const]/4

A core constant expression such that (if it is a prvalue) no constituent value of its result object is an invalid pointer value, an indeterminate value, or an erroneous value. It constrains the result.

constant iterator常量迭代器[iterator.requirements.general]/5

An iterator that is not a mutable iterator: the element it points to cannot be modified through it, such as vector<int>::const_iterator. C++23's basic_const_iterator can wrap any input iterator into a constant iterator.

constant range常量范围[range.refinements]/7

An input range whose elements cannot be modified through its iterators (the iterators are constant iterators). Introduced in C++23; views::as_const can convert any input range into one.

constant subexpression常量子表达式[defns.const.subexpr]

An expression whose evaluation as a subexpression of a conditional-expression CE would not prevent CE from being a core constant expression.

constant template parameter常量模板形参[temp.param]/2

A template parameter introduced by a parameter-declaration, such as int N, auto V. Called a non-type template parameter (NTTP) in C++23 and earlier.

Constant When常量条件(规格元素)[structure.specifications]/3

A library function specification element listing the conditions required for a call to be a constant subexpression; e.g. bit_cast requires that neither To nor From has a constexpr-unknown representation.

constant-initialized已常量初始化[expr.const.init]/5

The initialization full-expression of a variable is a constant expression (with is_constant_evaluated() true in the trial evaluation), its result is constexpr-representable, and the variable has an initializer or its type is const-default-constructible. For variables with static/thread storage duration this implies static initialization.

consteval if statementconsteval if 语句[stmt.if]/4

An if statement of the form if consteval { ... } (C++23): executes the first branch (which is an immediate function context) in a manifestly constant-evaluated context, and the else branch otherwise; the branches must be compound statements.

consteval-only valueconsteval-only 值[expr.const.const]/1

A non-null reflection value, or a pointer/pointer-to-member pointing to an immediate function or immediate object. In C++26 such values must not make their way into run-time objects.

constexpr functionconstexpr 函数[dcl.constexpr]/2

A function declared with constexpr or consteval (so immediate functions are also constexpr functions). It is implicitly inline and can appear in constant expressions; otherwise it behaves the same as the equivalent ordinary function.

constexpr if statementconstexpr if 语句[stmt.if]/2

An if statement of the form if constexpr (c); the condition, contextually converted to bool, must be a constant expression, and the branch not selected is a discarded statement.

constexpr iteratorconstexpr 迭代器[iterator.requirements.general]/17

An iterator all of whose operations provided to meet its iterator category requirements are constexpr functions, such as int*, reverse_iterator<int*>.

constexpr-enabled specialization启用 constexpr 的特化[format.formatter.spec]/2

A formatter specialization whose format member function is declared constexpr; a call to a formatting function can be a constant subexpression only if all formatters it uses are such specializations.

constexpr-paramconstexpr-param[utility.syn]

An exposition-only concept in <utility>: requires { typename constant_wrapper<T::value>; }. Every type with a static value that can be wrapped in a constant_wrapper (including integral_constant) satisfies it, and the operators of cw-operators rely on it to preserve constness.

constexpr-referenceable可被 constexpr 引用[expr.const.init]/2

From a program point P, an object that has static storage duration, or is an automatic object in the same function parameter scope as P (the same function invocation). An object with thread storage duration never is. Introduced in C++26.

constexpr-representable可被 constexpr 表示[expr.const.init]/3

All targets of the constituent pointers and constituent references of an object or reference are constexpr-referenceable from program point P. In C++26 this replaced the rule that "permitted results of constant expressions must have static storage duration".

constexpr-suitableconstexpr 适用的[dcl.constexpr]/3

In the current draft, a function is constexpr-suitable simply if it is not a coroutine; a non-templated constexpr function must satisfy this. All other restrictions are deferred to be checked during actual constant evaluation ([expr.const.core]).

constexpr-unknownconstexpr 未知[expr.const.core]/9

During constant evaluation, for an object or reference whose lifetime did not begin within this evaluation and that is not usable in constant expressions, its dynamic type (or the object it is bound to) is treated as unknown: its address can be taken and non-virtual members called, but its value cannot be read, virtual functions cannot be called, and polymorphic typeid cannot be applied.

constexpr-unknown representationconstexpr 未知表示[expr.const.core]/1

A type whose object representation cannot be determined at translation time: unions, std::meta::info, pointers and pointers to members, volatile types, classes with reference members, and types recursively containing these.

constituent expression构成表达式[intro.execution]/2

The expressions actually evaluated when an expression, conversion, braced list, or = initializer is broken down; e.g. the constituent expressions of B b = {5, {1+1}}; are 5 and 1+1.

constituent values组成值[intro.object]/12

The value of a scalar object, or the constituent values of all direct subobjects of an object other than inactive union members; constant expressions use this to check whether the result is fully initialized.

constraint约束[temp.constr.constr.general]/1

An abstract structure imposing requirements on template arguments, composed of conjunctions, disjunctions, atomic constraints, concept-dependent constraints, and fold expanded constraints; obtained by normalizing a constraint expression, with no direct syntactic counterpart.

Constraints (element)Constraints 要素[structure.specifications]/3.1

An element of a library function specification: the conditions for the function to participate in overload resolution. When not met, the function is silently non-viable, which can be observed by requires-expressions and type traits (SFINAE-friendly).

contained value被包含值[optional.optional.general]/1

The active exposition-only member val of optional; an optional contains a value if and only if val is the active member. For optional, it refers to the reference *val.

container容器[container.requirements.pre]/1

An object that stores other objects and controls their allocation and deallocation through construction, destruction, insertion, and erasure; its type must meet the named requirements of [container.reqmts]: member types, begin/end, constant-time size, == comparing sizes first, constant-time swap (except for array and inplace_vector), etc.

container adaptor容器适配器[container.adaptors.general]/2

A class template that holds one or more underlying containers (template parameters Container/KeyContainer/MappedContainer) and exposes only a narrowed interface: stack, queue, priority_queue, and flat_map, flat_multimap, flat_set, flat_multiset. Complexity, exception, and iterator invalidation rules are delegated to the underlying containers.

contextually converted to bool按语境转换为 bool[conv.general]/4

An expression E in an if condition, !, &&, etc. is converted to bool if and only if bool t(E); is well-formed; because this is direct-initialization, explicit conversion functions are considered.

contiguous container连续容器[container.reqmts]/68

A container whose iterator and const_iterator meet the Cpp17RandomAccessIterator requirements and model contiguous_iterator: array, vector (for elements other than bool), inplace_vector, basic_string.

contract assertion契约断言[basic.contract.general]/1

An assertion introduced by pre, post, or contract_assert that describes a property the program is expected to satisfy at a given point; the predicate is a bool full-expression in which outer variables are implicitly const.

contract violation契约违反[basic.contract.eval]/7

Under a checking semantic, the predicate is false, evaluation of the predicate throws an exception, or, in manifestly constant evaluation, the predicate is not a core constant expression.

contract-terminated契约终止[basic.contract.eval]/9

Termination of the program due to a contract violation: by calling std::terminate, calling std::abort, or terminating execution directly, implementation-defined.

contract-violation handler契约违反处理函数[basic.contract.handler]/1

A function named ::handle_contract_violation with a parameter of type const std::contracts::contract_violation&, called on a violation under the observe/enforce semantics; whether it is replaceable is implementation-defined.

control-flow-limited statement控制流受限语句[stmt.label]/3

A statement whose case/default labels must belong to a switch within it, and whose labels can be referred to only by statements within it; i.e. it cannot be jumped into from outside. The branches of if constexpr and if consteval and the body of an expansion statement are such statements.

conversion function转换函数[class.conv.fct]/1

A non-static member function of the form operator T() with no non-object parameters, specifying a conversion from its class to T; it can be explicit, virtual, or a template.

converted constant expression转换后的常量表达式[expr.const.const]/8

An expression that, implicitly converted to the target type T, is a constant expression, where the conversion sequence contains only safe conversions (no narrowing, no integral–floating conversions, references must bind directly). Used for array bounds, case labels, constant template arguments, etc.

converted initializer转换后的初始化器[dcl.init.ref]/5

When a reference binds to an rvalue or function lvalue ([dcl.init.ref] ¶5.3), the initializer expression itself or the result of converting it via a conversion function; if it is a prvalue, it is materialized with the reference's cv-qualification.

converting constructor转换构造函数[class.conv.ctor]/1

A constructor that is not explicit; it specifies an implicit conversion from its parameter types to its class type (since C++11 including multi-parameter constructors, used in list-initialization).

converts-from-any-cvrefconverts-from-any-cvref[optional.ctor]/1

An exposition-only variable template: whether T can be constructed from or implicitly converted from any cv/reference form of W. When true, the value-wise converting constructors of optional/expected step aside.

copy assignment operator复制赋值运算符[class.copy.assign]/1

A non-static non-template operator= with exactly one non-object parameter of type X or cv X&. The by-value parameter version is also a copy assignment operator.

copy constructor复制构造函数[class.copy.ctor]/1

A non-template constructor whose first parameter is cv X& and whose remaining parameters all have default arguments. A constructor template is never a copy constructor.

copy deduction candidate拷贝推导候选[over.match.class.deduct]/1.3

The guide generated from a hypothetical constructor C(C), ensuring that initialization from a C<X> object deduces C<X> rather than C<C<X>>; in a tie it is preferred over the other candidates not generated from deduction-guides.

copy elision复制消除[class.copy.elision]/1

In four contexts — return/throw of a local object, copying coroutine parameters, and catching by value in catch — the implementation is permitted to omit creating a class object from a source object of the same type, even if the constructor/destructor has side effects. It is optional and forbidden in constant evaluation; since C++17, initializing an object from a prvalue of the same type involves no copy at all and does not fall under this.

copy-initialization拷贝初始化[dcl.init.general]/13

Initialization of the = form, as well as in argument passing, function return, throw, exception handling, and non-designated aggregate member initialization. Explicit constructors and explicit conversion functions are not considered.

copy-list-initialization拷贝列表初始化[dcl.init.list]/1

List-initialization in a copy-initialization context, such as T x = {…}, f({…}), return {…};. If overload resolution selects an explicit constructor, the program is ill-formed.

core constant expression核心常量表达式[expr.const.core]/2

An expression whose evaluation, following the rules of the abstract machine, would not evaluate any of the operations on the blacklist in [expr.const.core]/2 (calls to non-constexpr functions, UB, reinterpret_cast, non-transient allocations, etc.). It constrains the evaluation process.

coroutine协程[dcl.fct.def.coroutine]/1

A function whose body contains co_await, co_yield, or co_return (C++20); it can be suspended and later resumed, with its state kept in the coroutine state.

coroutine handle协程句柄[coroutine.handle.general]/1

An object of type coroutine_handle<P> that non-owningly refers to a suspended or executing coroutine (essentially the address of the coroutine frame), used to resume or destroy the coroutine and to access its promise.

coroutine state协程状态[dcl.fct.def.coroutine]/9

The additional storage a coroutine needs (colloquially the coroutine frame), containing the promise, the parameter copies, and local variables that live across suspension points; obtained through an allocation function (which can be customized in the promise), and it may be optimized away.

coroutine traits协程特征[coroutine.traits]

std::coroutine_traits<R, Args...>: the compiler uses it to find the promise type from the coroutine's return type and parameter types; the primary template forwards R::promise_type.

correspond对应[basic.scope.scope]/4

Two declarations correspond if they introduce the same name (or both declare constructors/destructors), are not "type vs. non-type", do not involve a using-declarator, and, for functions, are corresponding overloads. Corresponding declarations are either redeclarations of the same entity or potentially conflict.

corresponding direct subobjects对应的直接子对象[intro.object]/2

An object of the same type created exactly over the storage of a subobject e (where e is not a potentially-overlapping subobject and the enclosing object is within its lifetime) becomes a subobject of the enclosing object; the two are called corresponding direct subobjects; used to define transparently replaceable.

corresponding overloads对应重载[basic.scope.scope]/4

Two function declarations whose non-object-parameter-type-lists are the same, whose trailing requires-clauses are equivalent, and (when both are non-static members) whose object parameters correspond; function templates additionally require corresponding signatures and equivalent template-heads.

counted range计数范围[iterator.requirements.general]/11

A range denoted by an iterator plus an element count, i+[0, n): the n elements starting from the element pointed to by i. If n == 0 it is empty; otherwise it is valid if and only if i is dereferenceable and ++i+[0, n-1) is valid.

covariant return type协变返回类型[class.virtual]/8

The overriding function returns a pointer/reference to a derived class, while the overridden function returns the same kind of pointer/reference to an accessible, unambiguous base class (with no added cv-qualification); the result of the call is converted to the return type of the statically chosen function.

Cpp17 named requirementCpp17 命名要求[structure.requirements]/5

A set of valid-expression requirements given in tables and named in italics with a Cpp17 prefix (such as Cpp17CopyConstructible). Unlike library concepts in monospace font, it is only a textual requirement, and failing to meet it is usually undefined behavior.

Cpp17BinaryTypeTrait二元类型特征要求[meta.rqmts]/2

The requirements a class template describing a relationship between two types must meet: it takes two type arguments (possibly with additional helper arguments); otherwise the same as a unary type trait.

Cpp17Clock requirementsCpp17Clock 要求[time.clock.req]/1

What a "clock" type must provide: four member types rep, period, duration, time_point; a bool constant is_steady usable in constant expressions; and a static function now() returning the current time_point. The is_clock trait checks at least for the presence of these names.

Cpp17TransformationTrait变换特征要求[meta.rqmts]/3

The requirements a class template modifying some property of a type must meet: it takes one type argument (possibly with additional helper arguments), and declares a public nested type type as a synonym for the modified type.

Cpp17TrivialClock requirementsCpp17TrivialClock 要求[time.clock.req]/4

On top of Cpp17Clock it additionally requires: rep, duration, and time_point are comparable, swappable, and meet the numeric type requirements (so their operations do not throw), now() does not throw, and time_point::clock recursively meets these requirements. The clocks used by the timeout functions of the standard thread library are all such clocks.

Cpp17UnaryTypeTrait一元类型特征要求[meta.rqmts]/1

The requirements a class template describing a property of a single type must meet: it takes one type argument (possibly with additional helper arguments), is default constructible and copy constructible, and derives from its base characteristic without hiding the base characteristic's member names.

ctor-initializer构造函数初始化器[class.base.init]/1

The list of mem-initializers after the colon in a constructor definition, specifying initializers for direct base classes, virtual base classes, and non-static data members, or delegating to another constructor of the same class. The order in which they are written does not affect the order of initialization.

current class当前类[expr.prim.this]/2

At a program point, the class associated with the innermost class scope containing that point. A lambda does not introduce a class scope, whereas a local class does; the type of this and implicit member access are both based on it.

current instantiation当前实例化[temp.dep.type]/1

A name inside the definition of a class template (and its members, nested classes, partial specializations) that refers to "this very specialization", such as the injected-class-name or X<T>; its members can be looked up at the point of definition without typename.

currently handled exception当前处理的异常[except.handle]/10

The exception whose handler was most recently activated and is still active; throw; rethrows it, and std::current_exception() returns it.

customization point object定制点对象[customization.point.object]/1

A function object of literal class type (such as ranges::swap) that interacts with program-defined types and imposes semantic requirements on that interaction; its type must model semiregular and be a structural and trivially copyable type, and all its instances are equal.

data member description数据成员描述[class.mem.general]/32

In C++26 reflection, a six-tuple (type, name, alignment, bit-field width, whether no_unique_address, annotations) describing a potential non-static data member, used by std::meta::define_aggregate.

data race数据竞争[intro.races]/17

Two potentially concurrent conflicting actions, at least one of which is not atomic, and neither of which happens before the other. Any data race results in undefined behavior.

data-parallel type数据并行类型[simd.general]/3

All enabled specializations of basic_vec and basic_mask; consisting of a number of elements of the same element type, where the number of elements (the width) is constant for each type. The applications of an element-wise operation are unsequenced with respect to each other.

debug-enabled specialization启用调试的特化[format.formatter.spec]/2

A formatter specialization that additionally provides a public constexpr member set_debug_format(); calling it is equivalent to setting the type to ?. Range and tuple formatters call it on their elements by default.

decay-copy退化复制[expos.only.entity]/2

An exposition-only function: returns, by copy-initialization, a copy of its argument after decay (decay_t). Close to auto(x), but with a convertible_to constraint and using copy-initialization.

decision variable判定变量[stmt.pre]/5

The variable tested in a condition of declaration form: for an ordinary declaration, the declared variable; for a structured binding declaration (C++26), the underlying unnamed variable e.

decl-reachabledecl 可达[module.global.frag]/2

A relation between declarations in the same TU: D is mentioned by S, named by an expression in S, found by conservative lookup for a dependent call in S, etc., closed under rules for classes and members, templates and specializations, and so on. Used to determine whether declarations in the global module fragment are discarded.

declaration set声明集[class.member.lookup]/2

Part of a lookup set: the member declarations named N that were found (type declarations replaced by their types); when a merge conflicts it becomes an "invalid" set, indicating ambiguity.

declaration statement声明语句[stmt.dcl]/1

A block-declaration appearing in a block, introducing new names in the block.

declarative nested-name-specifier声明性嵌套名说明符[expr.prim.id.qual]/3

A nested-name-specifier appearing in a class-head-name, enum-head-name, declarator-id, or explicit instantiation (such as N:: in void N::f() {}); it cannot contain decltype or a splice, and the declaration must be in a scope that contains the target entity (except for friends).

declarator声明符[dcl.decl.general]/1

The part of a declaration that follows the specifier sequence and declares one entity and (optionally) names it; it uses operators such as *, &, [], () to transform the type given by the specifiers into the type of the entity. See [dcl.decl].

declared specialization已声明的特化[temp.inst]/1

A specialization for which a reachable explicit instantiation definition or explicit specialization declaration exists, or for which a reachable explicit instantiation declaration exists and which is not an inline function, an entity with a deduced type, a potentially-constant variable, or a specialization of a templated class. Declared specializations are not implicitly instantiated.

deducible template可推导模板[dcl.type.simple]/3

A template that can be used as a placeholder for a deduced class type (CTAD): a class template, a type template template parameter, or an alias template whose defining-type-id has the form simple-template-id (referring to another deducible template).

deduction guide推导指引[temp.deduct.guide]/1

A declaration of the form template-name(parameters) -> simple-template-id; that maps constructor arguments to a class template specialization during class template argument deduction; it is not found by name lookup — all reachable guides are considered.

deduction substitution loci推导代入位置[temp.deduct.general]/7

The places into which template arguments are substituted during deduction: the function type excluding the noexcept-specifier, the explicit-specifier, template parameter declarations, and the template argument list of a partial specialization. Substitution proceeds in lexical order and stops at the first failure.

deemed construction视为构造[dcl.init.general]/21

An object is deemed constructed when its initialization completes, even if it is not of class type or no constructor is called; the destruction order of static objects ([basic.start.term]) is based on this.

default argument默认实参[dcl.fct.default]/1

The = initializer in a parameter declaration; it is evaluated at the call site each time the corresponding argument is omitted. It is not part of the function type; default arguments accumulate across declarations within the same host scope and cannot be redefined.

default argument instantiation默认实参实例化[temp.inst]/14

The lookup, checking, and instantiation performed for a default argument when a templated function is called in a way that requires the use of that default argument; each default argument is instantiated independently, and unused default arguments do no harm even if ill-formed.

default argument promotions默认实参提升[expr.call]/13

For arguments passed to ..., integral/enumeration types that are subject to integral promotion are integrally promoted, and float is promoted to double; hence va_arg must use the promoted type.

default behavior默认行为[structure.specifications]

The description in the library clauses of what the implementation's own replaceable function or handler function does, e.g. the default operator new repeatedly calls the new_handler, and the default terminate_handler calls abort. No longer applicable once replaced.

default constructor默认构造函数[class.default.ctor]/1

A constructor each of whose parameters (other than a function parameter pack) has a default argument, including a constructor with no parameters. It is implicitly declared when there is no user-declared constructor at all.

default member initializer默认成员初始化器[class.mem.general]/15

The brace-or-equal-initializer in a non-static data member declaration (int x = 0;/int x{0};), used when a constructor does not initialize that member.

default memory resource pointer默认内存资源指针[mem.res.global]/3

A global pointer used by certain facilities (such as a default-constructed polymorphic_allocator) when the interface does not explicitly provide a memory resource, initially new_delete_resource(); it is read and written by set_default_resource/get_default_resource without introducing data races.

default template argument默认模板实参[temp.param]/17

A template argument given after = in a template parameter. A parameter pack cannot have one; they are merged across declarations; in class/variable/alias templates every subsequent parameter must have a default argument or be a pack, while function templates have no such restriction.

default-initialization默认初始化[dcl.init.general]/6

For a class type: overload resolution with () and the selected default constructor is called; for an array: each element is default-initialized; for other types (except std::meta::info): no initialization is performed. An object with no initializer is default-initialized.

defaulted comparison operator function预置比较运算符函数[class.compare.default]/1

A non-template member or friend comparison operator of class C, defined as = default in C or where C is complete, whose two parameters are both const C& or both C (the implicit object parameter counts as the first).

deferred function延迟函数[futures.async]/3

The function and copies of its arguments stored in the shared state when async is called with the launch::deferred policy; it is invoked in the waiting thread on the first call to a non-timed waiting function on an asynchronous return object sharing that state.

definable item可定义项[basic.def.odr]/1

What the ODR governs: class types, enumeration types, functions, variables, templated entities, default arguments, and default template arguments.

defined prefix定义前缀[intro.abstract]/6

Introduced in C++26: within an execution, the operations that can be separated by some observable checkpoint from every undefined operation. The implementation must produce the observable behavior of the defined prefix.

definition定义[basic.def]/2

By default a declaration also defines the entity it declares, unless it falls under one of the 22 exceptions in [basic.def]/2 (no function body, extern without an initializer, non-inline static member in a class, typedef, using, etc.).

definition domain定义域[basic.def.odr]/13

A private-module-fragment, or the part of a TU outside the private module fragment. The definition of an inline function or variable must be reachable from the end of every definition domain in which it is odr-used.

delegating constructor委托构造函数[class.base.init]/6

A constructor whose mem-initializer-id names the class itself; that mem-initializer must be the only one, and the constructor it selects is called the target constructor. The object is initialized once the target constructor returns; if the delegating constructor's body then throws, the object's destructor is invoked.

deleted function弃置函数[dcl.fct.def.delete]/1

A function with a deleted definition (= delete; or C++26's = delete("reason");, or a defaulted function defined as deleted); it participates in overload resolution, but any construct that refers to it (including in unevaluated operands) is ill-formed.

deleted object被删除对象[expr.delete]/10

The object destroyed by a delete-expression: for a single-object delete, the most derived object if the static type of the object pointed to by the operand has a virtual destructor, otherwise that object itself; for an array delete, the array object. Its address and size are passed to the deallocation function.

deleter删除器[unique.ptr.general]/2

The mechanism for disposing of the object owned by a unique_ptr: a function object (or an lvalue reference to a function or function object) which, when called with the stored pointer, properly disposes of the object; by default default_delete, which calls delete.

dependent base class依赖基类[temp.dep.type]/3

A base class that is a dependent type and is not the current instantiation, such as Base<T>; it is not searched by name lookup at template definition time, and its members must be accessed via this-> or a qualified name.

dependent call依赖调用[temp.dep.general]/2

A function call whose callee expression is an unqualified-id and whose arguments include a pack expansion or a type-dependent expression, or whose callee name is a template-id with dependent template arguments; its callee name is a dependent name, and ADL is added at instantiation.

dependent type依赖类型[temp.dep.type]/10

A type that may vary with template arguments: a template parameter, a type denoted by a dependent name, a compound type constructed from a dependent type, an array with a value-dependent bound, a template specialization with dependent arguments, decltype of a type-dependent expression, etc.

deprecated已弃用[depr.general]/2

Annex D's classification of a class of features: still normative in the current edition, but identified as candidates for removal from future revisions. An implementation may add the [[deprecated]] attribute to the corresponding library names. See [depr.general].

dereferenceable可解引用(的迭代器值)[iterator.requirements.general]/7

An iterator value for which the expression *i is defined. Dereferenceable values are always non-singular; past-the-end values are not dereferenceable.

designating class指名类[class.access.base]/5

The reference class for access checking: the class in whose scope name lookup found the member (e.g. T in p->T::m); when designated by a splice, the class of which the member is a direct member.

destination type目标类型[dcl.init.general]/15

In [dcl.init] ¶15, the type of the object or reference being initialized (with top-level cv removed); the corresponding "source type" is the type of the initializer expression, defined only when the initializer is a single expression.

destringize反字符串化[cpp.pragma.op]/1

What _Pragma does to its string literal: delete the encoding prefix and the leading and trailing quotes, replace \" with " and \\ with \, then split the result into preprocessing tokens as in phase 3 and execute it as a pragma directive.

destroying operator delete销毁型 operator delete[basic.stc.dynamic.deallocation]/2

A class member operator delete whose second parameter is std::destroying_delete_t; the delete-expression no longer calls the destructor, and this function takes responsibility for both destruction and deallocation (C++20).

detached thread分离的线程[thread.thread.class.general]/1

A thread of execution not represented by any std::thread object, e.g. after calling detach(). A detached thread lacks the synchronization edge "completion synchronizes with the return of join".

detected-format检测格式[fs.path.fmt.cvt]/2

The determination of the format of a character sequence when a path is constructed or assigned: it is treated as the generic format only if it conforms to the generic format and is not accepted by the operating system as a native path; otherwise it is treated as the native format. On POSIX there is no difference between the two formats.

diagnosable rule可诊断规则[intro.compliance.general]/1

All syntactic and semantic rules in the standard except those marked "no diagnostic is required" or that result in undefined behavior. When one is violated, the implementation must issue at least one diagnostic message.

diagnostic message诊断信息[defns.diagnostic]

A message belonging to an implementation-defined subset of the implementation's output messages. The standard does not distinguish errors from warnings: a warning can also satisfy the obligation to diagnose.

difference type (of an iterator)(迭代器的)差值类型[iterator.requirements.general]/1

The signed-integer-like type associated with each iterator type, used to represent the distance between two iterators; queried with iter_difference_t<I>, and it may be an implementation-provided integer-class type.

direct base class直接基类[class.derived.general]/2

A class written directly in a base-specifier of the class definition; a base class of a base class is an indirect base class.

direct member直接成员[class.mem.general]/3

A member first declared in the member-specification of class X (including anonymous union members and their direct members); inherited members and members introduced by using-declarations are not.

direct-initialization直接初始化[dcl.init.general]/14

Initialization occurring with parenthesized or braced initializers, new-initializers, static_cast, and functional type conversions T(…)/T{…}. Explicit constructors and conversion functions are also candidates.

direct-list-initialization直接列表初始化[dcl.init.list]/1

List-initialization in a direct-initialization context, such as T x{…}, new T{…}, T{…}.

direct-non-list-initialization直接非列表初始化[dcl.init.list]/1

Direct-initialization that is not list-initialization, such as T x(a);, static_cast<T>(e).

directive-introducing token指令引导记号[cpp.pre]/2

The first token of a preprocessing directive: a # at the start of the file or after whitespace containing a new-line; or import or module followed on the same logical line by particular tokens, and export followed by either of those two forms.

disabled specialization of hash禁用的 hash 特化[unord.hash]/4

hash when neither the library nor the user provides a specialization: the type exists, but it is not default constructible, copyable, movable, or assignable, and is not a function object type, so it can be safely detected with SFINAE.

discarded declaration被丢弃的声明[module.global.frag]/3

A declaration in the global module fragment that is not decl-reachable from any declaration in the TU's declaration-seq. It is neither reachable nor visible outside that module unit.

discarded statement弃置语句[stmt.if]/2

The substatement of a constexpr if statement that is not selected. In a template (when the condition is not value-dependent after instantiation) it is not instantiated; odr-uses in it do not require a definition; return statements in it do not participate in return type deduction.

discarded-value expression弃值表达式[expr.context]/2

An expression evaluated only for its side effects, with its result discarded, such as an expression statement, the left operand of a comma, or (void)e. The lvalue-to-rvalue conversion is applied only to volatile glvalues of particular forms; prvalues of object type are materialized.

discriminated type可辨识类型[any.general]/1

The term used in [any]: a type that can hold values of different types, remembers the type of the value, but performs no conversions between types, such as std::any.

domain (of an expression)(表达式的)定义域[concepts.equality]/2

The set of input values for which an expression is required to be well-defined. The operations required by a concept need not be total functions; e.g. NaN is not in the domain of < for double, which does not prevent double from modeling totally_ordered.

double wrapping双重包装[func.wrap.general]/3

Constructing one polymorphic function wrapper from another by wrapping the former as a whole as the target object in another layer; the standard recommends that implementations avoid it, and for this purpose allows the arguments of the inner and outer calls to alias each other.

dynamic exception specification动态异常说明[diff.cpp14.except]/1

The C++98 exception specification of the form throw(T1, T2, ...), listing the exception types a function is allowed to throw; a violation calls std::unexpected. Deprecated in C++11; the form with types was removed in C++17 and throw() in C++20; the replacement is noexcept. See [diff.cpp14], [diff.cpp17].

dynamic extent动态 extent[mdspan.extents.overview]/3

An extent template argument whose value is dynamic_extent (i.e. numeric_limits<size_t>::max()): the length of that dimension is supplied at run time and stored in the object.

dynamic initialization动态初始化[basic.start.static]/2

All initialization other than static initialization. Dynamic initialization of non-block variables is divided into ordered, partially-ordered, and unordered; ordered variables in different TUs are indeterminately sequenced with respect to each other.

dynamic storage duration动态存储期[basic.stc.dynamic.general]/1

The storage duration of objects created by a new-expression or created implicitly, lasting until the storage is deallocated.

dynamic type动态类型[defns.dynamic.type]

For a glvalue, the type of the most derived object it refers to; for a prvalue, simply its static type.

Effects: Equivalent to效果等价于[structure.specifications]/4

The way library specifications describe a function's semantics with code: the function's own Constraints/Mandates apply first, all specification elements of the calls in the code are carried over, and the function's own Throws/Postconditions/Complexity override them. It specifies observable semantics and does not constrain how it is implemented.

element (of an aggregate)聚合元素[dcl.init.aggr]/2

The elements of an array; for a class, its direct base classes (in declaration order) followed by the direct non-static data members that are not members of anonymous unions (in declaration order). Static members and unnamed bit-fields are not elements.

element access function元素访问函数[algorithms.parallel.defns]/3

The operations invoked by a parallel algorithm during its execution that are provided by the user or determined by the iterator/element types: iterator operations, operations on elements, and user-provided function objects and the operations they require.

element block元素块[hive.overview]/1

A block of memory in which a hive stores elements; blocks containing elements are active blocks, those containing none are reserved blocks. Block capacity is constrained by the minimum/maximum limits of hive_limits, and erasure only marks elements to be skipped without moving other elements.

element type (of an array)数组元素类型[dcl.array]/4

The U in the array type "array of N U"; it cannot be a reference, a function, an array of unknown bound, or cv void. Cv-qualification of an array applies to its element type.

eligible special member function合格的特殊成员函数[special]/6

A special member function that is not deleted, whose constraints are satisfied, and for which there is no special member function of the same kind whose constraints are satisfied and that is more constrained; properties such as trivially copyable look only at eligible ones.

eligible to be unblocked有资格被解除阻塞[atomics.wait]/4

If an atomic waiting operation blocks after observing a modification X, and there is a modification Y later than X in the modification order that happens before some atomic notifying operation, then the waiting operation is eligible to be unblocked by that notification. This definition rules out lost wake-ups in the "modify, then notify" case.

ellipsis conversion sequence省略号转换序列[over.ics.ellipsis]/1

The conversion sequence formed when an argument is matched to an ellipsis parameter; the worst of the three forms.

empty (shared_ptr)空的 shared_ptr[util.smartptr.shared.general]/1

A shared_ptr that owns no pointer; use_count() is 0. "Empty" is independent of get() == nullptr: the aliasing constructor can yield an empty shared_ptr with a non-null stored pointer, and constructing from nullptr with a deleter can yield a non-empty shared_ptr storing a null pointer.

enables shared_from_this启用 shared_from_this[util.smartptr.shared.const]/1

A step of shared_ptr constructors: if Y has an unambiguous and accessible base class that is a specialization of enable_shared_from_this, and its weak-this has expired, weak-this is made to share ownership with the newly created shared_ptr. It does not happen with private inheritance.

encloses (statement)包围(语句)[stmt.pre]/3

The relation obtained by adding the init-statement and the compound statements of try blocks and handlers on top of the substatement relation and taking the transitive closure; the validity of break, case, continue, etc. is all judged with it. It does not penetrate lambda bodies.

end-of-stream iterator流末迭代器[istreambuf.iterator.general]/1

The value a stream iterator has after reaching end of stream or a read failure, obtained by default construction (or construction from default_sentinel), used as the end of an input range.

entity实体[basic.pre]/8

A variable, structured binding, result binding, function, enumerator, type, type alias, non-static data member, bit-field, template, namespace, namespace alias, template parameter, function parameter, or init-capture. Objects and values are not entities.

enumerable type可枚举类型[meta.reflection.queries]/30

A type that is enumerable from program point P: a class type that is complete at P, or an enumeration type whose definition is reachable from P where P is not within its enum-specifier. members_of and enumerators_of require their arguments to be enumerable.

enumerated type枚举类型(库)[enumerated.types]/1

A library type that can be implemented as an enumeration or a synonym for an enumeration (such as ios_base::seekdir), whose enumerated elements have distinct values.

environment (of an asynchronous operation)环境[exec.async.ops]/4

A queryable object representing the execution-time properties of an asynchronous operation's caller (such as a stop token, allocator, or scheduler). The environment of an asynchronous operation equals that of its receiver and is obtained with get_env(rcvr).

epoch (of a clock)纪元(时钟的起点)[time.clock.req]/1

The origin measured by a clock's time_point: a time_point stores only a duration, meaning "how far from the epoch". The epoch of system_clock is 1970-01-01 00:00:00 UTC; the epochs of steady_clock and file_clock are unspecified. Two clocks have different epochs, so their time_points cannot be directly compared or subtracted.

equality-preserving保持相等性[concepts.equality]/1

Given equal inputs (operands), the expression yields equal outputs (the result and any modified operands); it is also required to be stable: two evaluations on the same input objects with no intervening explicit modification yield equal outputs. Expressions in library requires-expressions are required to be equality-preserving by default.

equivalent (expressions involving template parameters)等价(涉及模板形参的表达式)[temp.over.link]/5

Two expressions involving template parameters are equivalent if function definitions containing them would satisfy the ODR (with template parameters renamed by position); compared by token structure, dependent names compare only by name, and lambdas are never equivalent.

equivalent keys等价键[associative.reqmts.general]/4

The property of an associative or unordered container allowing multiple elements with equivalent keys: multiset, multimap and their unordered versions; in ordered containers, insertion and erasure preserve the relative order of equivalent elements.

equivalent-key group等价键组[unord.req.general]/6

In an unordered container with equivalent keys, a group of elements whose keys are equivalent to each other and which are adjacent in iteration order; modifying operations and rehash preserve the relative order within a group, and operator== compares group by group as permutations.

equivalently-valued pointer values等值指针[allocator.requirements]/93

Two allocator pointer values (possibly of different types) that compare equal after being converted to const_pointer by a sequence of static_casts only among pointer/const_pointer/void_pointer/const_void_pointer.

erroneous behavior错误行为(EB)[defns.erroneous]

Introduced in C++26: well-defined behavior that is nonetheless a program error, which implementations are recommended to diagnose. An implementation may diagnose it and terminate the program, but cannot assume it does not occur. Its current source is reading the erroneous value of an uninitialized automatic variable.

erroneous value错误值[basic.indet]/1

In C++26, the value of uninitialized bytes of a variable with automatic storage duration, determined by the implementation independently of the program state; producing it is erroneous behavior rather than UB.

error category错误类别[syserr.errcat.overview]/1

A singleton object derived from std::error_category that identifies the source and encoding of a family of error codes: equality is determined by address, and it provides name(), message(), and default_error_condition and equivalent for mapping error codes to error conditions.

error code错误码(error_code)[syserr.errcode.overview]/1

A value type consisting of an integer value and a pointer to an error category, holding the exact, platform-dependent error actually obtained by an operation; the value 0 means no error. Comparison with an error_code is exact; comparison with an error_condition goes through the category's equivalent semantics.

error condition错误状况(error_condition)[syserr.errcondition.overview]/1

A portable abstraction consisting of an integer value and an error category, representing "which kind of error" a caller cares about (e.g. errc::timed_out), used for semantic comparison with error_code; the default category is generic_category().

escaped string转义字符串[format.string.escaped]/2

The debug representation produced by the ? type: quoted, with tabs, newlines, quotes, backslashes, and non-printable/separator characters and invalid code units written as escapes such as \t, \u{..}, \x{..}.

evaluate in sequence按序求值[basic.contract.eval]/18

Evaluating a sequence of contract assertions in order, where each assertion may be repeated an implementation-defined number of times, but the first occurrences of the assertions keep the original order.

evaluation context求值上下文[expr.const.reflect]/5

The set of program points an evaluation "can see" during constant evaluation: the point of evaluation, the synthesized points in its instantiation context, and the synthesized points of injected declarations produced earlier; nested manifestly constant-evaluated expressions recompute it. It determines the results of reflection queries. C++26.

evaluation semantic求值语义[basic.contract.eval]/1

The manner in which a given evaluation of a contract assertion is carried out: ignore, observe, enforce, or quick-enforce, implementation-defined. The last three are checking semantics; enforce and quick-enforce are terminating semantics.

exception object异常对象[except.throw]/3

An object with dynamic storage duration initialized when an exception is thrown; its type determines which handlers can catch it. How it is stored is unspecified (global operator new is not called), and it is destroyed at the last potential point of destruction.

exception specification异常说明[except.spec]/1

A predicate indicating whether a function can exit via an exception, given explicitly by noexcept/noexcept(constant-expression) or determined implicitly by rules; part of the function type since C++17.

exchanges the values交换值[concept.swappable]/1

An operation exchanges the values denoted by t1 and u1 if it does not modify witness objects t2 and u2 that record the original values, and afterwards t1 equals u2 and u1 equals t2 (compared in the common reference type if the types differ); a self-swap must leave the value unchanged.

execution agent执行代理[thread.req.lockable.general]/1

An entity such as a thread that can perform work in parallel with other execution agents; implementations or users may also introduce other kinds of agents, such as processes or thread-pool tasks. The requirements on lockable types and the "ownership" of mutexes are both framed in terms of execution agents.

execution character set执行字符集[character.seq.general]/1.2

The character set used by C/C++ library functions to interpret sequences of char (and wchar_t, corresponding to the execution wide-character set) at run time; it is a superset of the basic literal character set, its encoding is locale-specific, changes with setlocale, and can be unrelated to any literal encoding.

execution domain执行 domain[exec.get.domain]/1

An empty tag type (domain tag) associated with an execution resource, used to select the implementation of sender algorithms: before connect, transform_sender calls the transform_sender of the completion domain and starting domain to rewrite the sender. The default is default_domain.

execution policy执行策略[execpol.general]/1

An object passed as the first argument to a parallel algorithm, whose type (sequenced_policy, etc.) declares what kind of parallelization/vectorization the algorithm is permitted, and hence the requirements imposed on the element access functions.

execution policy template parameter执行策略模板形参[algorithms.parallel.defns]/2

The template parameter of a parallel algorithm that is named ExecutionPolicy or constrained by execution-policy; the overload participates in overload resolution only if is_execution_policy_v<remove_cvref_t<Ep>> is satisfied.

execution resource执行资源[exec.async.ops]/1

A program entity that manages a (possibly dynamic) set of execution agents and performs parallel work on behalf of callers, such as the current thread, a system thread pool, or an external accelerator. Execution resources execute asynchronous operations and can be valid or invalid.

execution step执行步骤[intro.progress]/3

Termination of the thread, a volatile access, completion of a library I/O call, or completion of an atomic or synchronization operation (other than modify-write). When a thread makes progress, an execution step occurs.

expanded list of subobjects展开的子对象列表[class.compare.default]/5

The direct base class subobjects in declaration order, followed by the direct non-static data members, with arrays recursively expanded into their elements. Defaulted == and <=> compare element by element along this list.

expansion statement展开语句[stmt.expand]/1

C++26's template for (decl : init) { ... }: at compile time, the compound statement is instantiated N times, once per element, and the loop variable may have a different type in each copy. There are three kinds: enumerating, iterating, and destructuring.

expansion-iterable可展开迭代的[stmt.expand]/3

An expression of non-array type whose begin/end are in member form or for which ADL finds viable begin/end candidates; an expansion statement with it as the initializer is an iterating expansion statement.

explicit instantiation显式实例化[temp.explicit]/2

A declaration of the form template declaration, requesting that the definition of a specialization be generated from the template at this point (an explicit instantiation definition); with extern it is an explicit instantiation declaration.

explicit instantiation declaration显式实例化声明[temp.explicit]/2

An explicit instantiation beginning with extern template, indicating that the definition is provided by an explicit instantiation definition elsewhere and is not generated in this translation unit; if used, the program must contain a corresponding explicit instantiation definition, otherwise IFNDR.

explicit object member function显式对象成员函数[dcl.fct]/8

A non-static member function with an explicit object parameter; there is no this in its body, and its address is an ordinary function pointer.

explicit object parameter显式对象形参[dcl.fct]/8

In C++23, the first parameter of a member function declared with the this specifier ("deducing this"); it cannot be a parameter pack, and the function containing it cannot have cv/ref-qualifiers and cannot be static or virtual.

explicit specialization显式特化[temp.expl.spec]/1

A declaration introduced by template<> that provides a complete replacement definition for a given set of template arguments (colloquially a full specialization). It is an ordinary entity and does not inherit the template's inline/constexpr; its declaration must be reachable before any use that would cause implicit instantiation.

explicitly captured显式捕获[expr.prim.lambda.capture]/4

An entity named directly by a simple-capture (x, &x, this, *this) in the capture list.

explicitly initialized element显式初始化的元素[dcl.init.aggr]/4

In aggregate initialization, an element initialized by a designator (via its associated element) or by some initializer-clause that appertains to it (or to its subobject); the remaining elements are initialized from their default member initializers or from {}.

explicitly-defaulted function显式预置的函数[dcl.fct.def.default]/1

A function whose body is = default;; it can only be a special member function, a comparison operator function, or (newly added in the draft) postfix ++/--. When defaulted on its first declaration it is implicitly inline and may be implicitly constexpr.

exported declaration被导出的声明[module.interface]/2

A declaration within an export-declaration that inhabits a namespace scope, a namespace definition containing an exported declaration, or a declaration in a header unit that introduces a name. Name lookup in importers can find it; it cannot declare a name with internal linkage (except in header units).

exposition only仅用于说明[expos.only.entity]/1

An entity introduced in the library specification to describe semantics, whose comment ends in exposition only (such as decay-copy, or expository private members). Programs cannot name them, and implementations need not provide them.

exposure暴露[basic.link]/14

A declaration that names a TU-local entity (ignoring non-inline function bodies, initializers, friends, and read-only constant references), or a definition that initializes a constexpr variable to a TU-local value. An exposure of a non-TU-local entity in a module interface is ill-formed; elsewhere it is deprecated.

expression-equivalent表达式等价[defns.expression.equivalent]

(Library) Several expressions that have the same effects and agree on whether they are potentially-throwing and on whether they are constant subexpressions. Used to specify customization point objects such as ranges::begin.

extended alignment扩展对齐[basic.align]/3

An alignment greater than alignof(std::max_align_t); whether it is supported is implementation-defined. A type with an extended alignment requirement is called an over-aligned type.

extended floating-point type扩展浮点类型[basic.fundamental]/12

Additional types provided by the implementation and defined as floating-point types, such as std::float16_t, std::bfloat16_t (C++23); they are distinct types from standard floating-point types with the same format.

extended integer type扩展整数类型[basic.fundamental]/5

Additional implementation-defined signed integer types and their corresponding unsigned types; as opposed to the standard integer types.

facetfacet(刻面)[locale.facet]/1

A class derived from std::locale::facet that contains a public static std::locale::id id; declaration, or a class publicly derived from another facet; a locale indexes its facets by the facet's id. A derived facet that does not redeclare id shares the same slot as its base class.

fallthrough statement贯穿语句[dcl.attr.fallthrough]/1

An empty statement with [[fallthrough]]; it may appear only in a switch, and the next statement that would be executed must be a case/default labeled statement of the same switch.

fancy pointer花式指针[pointer.traits.general]/1

The industry's general name for the case where an allocator's pointer type is not a raw pointer (but a class type, such as an offset pointer into shared memory); the standard has no such term, the related interfaces are described by pointer_traits and allocator_traits, and std::to_address converts back to a raw pointer.

field width字段宽度[format.string.std]/2

A width measured in terminal columns (field width units); with UTF encodings it is estimated from the first code point of each extended grapheme cluster, with East Asian wide characters and several emoji ranges counting as 2 columns.

field-based time point基于字段的时间点[time.cal.ym.overview]/1

A time point stored as separate fields such as year, month, and day, such as year_month_day. It makes arithmetic by year or month and field access easy, but adding or subtracting days is inconvenient; by contrast, sys_days is a "serial" time point (an integer count of days), with fast day arithmetic. The two can be converted into each other.

file system race文件系统竞争[fs.race.behavior]/1

The situation in which multiple threads, processes, or computers interleave access to and modification of the same object in a file system. If a call to a function in introduces a file system race, the behavior is undefined; precisely because someone else may insert a modification between check and use, these functions generally have no Preconditions.

final overrider最终覆盖者[class.virtual]/2

For a virtual function of a given subobject, the most derived overrider in the most derived class; a virtual function call calls it. Every virtual function of every subobject must have a unique final overrider.

final suspend point最终挂起点[dcl.fct.def.coroutine]/5

The state of a coroutine when it suspends at co_await promise.final_suspend(), or exits because unhandled_exception() threw; at this point done() is true and only destroy() may be called.

fixed underlying type固定底层类型[dcl.enum]/5

An underlying type that is explicitly specified (enum E : T) or is the default of a scoped enumeration. When it is fixed, the enumeration can be opaquely declared, its set of values is all values of the underlying type, and it can be direct-list-initialized from an integer (C++17).

flat container扁平容器[flat.map.overview]/2

Collective name for flat_map, flat_multimap, flat_set, flat_multiset: they implement the associative container interface on top of sorted random-access sequence containers (by default vector). Lookup is binary search and traversal is contiguous; single-element insertion/erasure is linear; they do not meet the associative-container invalidation and node-handle requirements, and are not allocator-aware containers.

floating-point conversion rank浮点转换等级[conv.rank]/2

A partial order among floating-point types (C++23), determined by inclusion of their value sets; when neither value set includes the other, they are unordered and mixed arithmetic is ill-formed.

floating-point conversion subrank浮点转换子等级[conv.rank]/3

A total order among floating-point types of equal rank; std::floatN_t is higher than a standard floating-point type of the same rank.

floating-point environment浮点环境[cfenv.thread]/1

Collective term for the floating-point status flags (divide-by-zero, inexact, invalid, overflow, underflow) and floating-point control modes (such as rounding direction), read and written via . It has thread storage duration; a new thread inherits the creator's environment at the time the thread/jthread is constructed; whether FENV_ACCESS is supported is implementation-defined.

floating-point type浮点类型[basic.fundamental]/12

Collective name for the standard floating-point types (float, double, long double) and the types the implementation defines as extended floating-point types.

fold expanded constraint折叠展开约束[temp.constr.fold]/1

A constraint obtained by normalizing (E && ...) or (E || ...): the constraint C is checked for each element of the pack in turn, with short-circuiting; two fold expanded constraints expanding the same pack can be compared for subsumption (C++26).

format string格式串[format.string.general]/1

A sequence consisting of replacement fields, the escape sequences {{/}}, and other ordinary characters; whether it is a "format string for args" depends on the number of arguments and on how each argument's formatter interprets its format-spec. If it is not a format string, passing it via format_string is ill-formed at compile time, and passing it via vformat throws format_error.

formatted input function格式化输入函数(提取器)[istream.formatted.reqmts]/1

An input function that constructs a sentry with noskipws = false (so by default it first skips leading whitespace) and parses characters according to the locale to obtain a value, such as operator>> for arithmetic types; it sets eofbit on reaching end of stream and failbit when conversion fails, and the state is written back all at once via setstate at the end, which may throw an exception.

formatted output function格式化输出函数(插入器)[ostream.formatted.reqmts]/1

An output function that, after constructing an ostream::sentry, generates a character sequence according to the format flags, width, and fill character and then inserts it, such as operator<< for arithmetic types and strings; most call width(0) at the end.

formatting locale格式化 locale[time.format]/2

The locale actually used by chrono formatting: when the format spec has no L option, the "C" locale is always used; with L, the locale passed to the formatting function is used, or the global locale if none is passed.

forwarding query转发查询[exec.fwd.env]/1

A query object q for which forwarding_query(q) is true: adaptors forward only such queries when passing a receiver's environment to child operations (FWD-ENV). It suffices to derive from forwarding_query_t or have a member query(forwarding_query) returning true.

forwarding reference转发引用[temp.deduct.call]/3

An rvalue reference T&& to a cv-unqualified template parameter (except one representing a class template parameter in CTAD), as well as auto&&; when the argument is an lvalue, T is deduced as an lvalue reference type and, after reference collapsing, binds to the lvalue. Colloquially a universal reference.

freestanding deleted function独立删除函数[freestanding.item]/3

A function declaration whose comment in the synopsis contains freestanding-deleted. Whether it is a deleted function on a freestanding implementation is implementation-defined, to prevent overload resolution from silently changing when migrating to a hosted implementation.

freestanding implementation独立实现[intro.compliance.general]/7

An implementation in which execution may take place without the benefit of an operating system: it supports the full language but need only provide the library subset specified in [compliance]. __STDC_HOSTED__ is 0.

freestanding item独立项[freestanding.item]/1

A declaration, entity, or macro that must be present in both freestanding and hosted implementations; determined by the freestanding comments in the synopses and their inheritance rules.

friend友元[class.friend]/1

A function or class granted permission by a class to name its private and protected members; it is not a member of that class, and friendship is neither inherited nor transitive.

full-expression完整表达式[intro.execution]/5

An expression that is not a subexpression of another expression, as well as unevaluated operands, constant expressions, immediate invocations, init-declarators, implicit destructor calls, contract predicates, etc. Adjacent full-expressions are strictly sequenced, and temporaries are usually destroyed at the end of the full-expression.

function contract assertion函数契约断言[dcl.contract.func]/1

A contract assertion associated with a function: a precondition assertion introduced by pre or a postcondition assertion introduced by post (C++26); introduced by the first declaration of the function.

function declaration函数声明[dcl.pre]/8

A declaration that is not a typedef declaration and in which the type associated with the declarator-id is a function type. The classification is made declarator by declarator.

function object type函数对象类型[function.objects.general]/1

An object type that can be the type of the postfix-expression in a function call expression: function pointers, classes with a member operator(), and classes convertible to function pointers. Pointers to members are not function object types.

function parameter pack函数形参包[temp.variadic]/2

A function parameter that accepts zero or more function arguments, such as Ts... ts; its declaration is itself a pack expansion.

function template specialization函数模板特化[temp.fct.spec.general]/1

A function instantiated from a function template, or an explicit specialization of a function template; its template arguments can be explicitly specified, deduced, or taken from default template arguments.

function-like macro函数式宏[cpp.replace.general]/13

A macro defined with a ( immediately following the macro name with no preceding whitespace, followed by a parameter list; it constitutes an invocation and is replaced only if the next preprocessing token after the macro name is (.

function-local predefined variable函数局部预定义变量[dcl.fct.def.general]/7

A variable with static storage duration implicitly defined in a function parameter scope, such as __func__ (a static const char[] with implementation-defined contents).

functionally equivalent功能等价[temp.over.link]/5

Two non-equivalent expressions involving template parameters that yield the same result for any template arguments (or, for unevaluated operands, perform the same operations); template-heads that accept the same set of arguments. Being functionally equivalent but not equivalent results in IFNDR.

fundamental alignment基本对齐[basic.align]/2

An alignment no greater than alignof(std::max_align_t), supported in all contexts.

fundamental type基础类型[basic.fundamental]/19

The types described in [basic.fundamental]: integer, character, bool, floating-point, void, std::nullptr_t, std::meta::info.

GENERALIZED_NONCOMMUTATIVE_SUM广义非交换和[numerics.defns]/1

Mathematical notation in <numeric> used to define the scan family: a reduction with op that preserves element order but allows arbitrary parenthesization. The result is unique only if op is associative.

GENERALIZED_SUM广义和[numerics.defns]/2

GENERALIZED_NONCOMMUTATIVE_SUM over an arbitrary permutation of the elements: both order and parenthesization are unspecified. reduce and transform_reduce are defined in terms of it; the result is unique only if op is both associative and commutative (floating-point addition is not).

generator范围生成器[coro.generator.class]/3

std::generator<Ref, Val, Alloc>: a coroutine return type that is also a move-only view modeling view and input_range; each co_yield produces one element, and co_yield ranges::elements_of(r) produces the elements of r one by one (nested generators recurse at O(1) per step).

generic lambda泛型 lambda[expr.prim.lambda.general]/6

A lambda with an auto placeholder among its parameters (including this auto) or with a template parameter list; its call operator is a template.

generic parameter type placeholder泛型参数类型占位符[dcl.spec.auto.general]/2

A placeholder type of the form type-constraint(opt) auto in a function parameter, lambda parameter, or template parameter; a function with one is an abbreviated function template, and a lambda with one is a generic lambda.

generic pathname format通用路径名格式[fs.path.generic]

The portable path syntax defined by the standard: an optional root-name, an optional root-directory, followed by a sequence of filenames separated by separators; '/' is always a usable separator. A path stores (or can generate) both the generic format and the operating system's native format representation.

get areaget 区[streambuf.reqts]/2

The segment of the input sequence of a basic_streambuf currently buffered in memory, described by three pointers: eback() (beginning), gptr() (next character to read), egptr() (end); while gptr() < egptr(), reading need not call a virtual function, and underflow()/uflow() is called only when it is exhausted.

global module全局模块[module.unit]/6

The collection of all global module fragments and all non-module TUs (including header units); it has no name and no interface unit. Declarations in traditional code are all attached to it.

global module fragment全局模块片段[module.global.frag]/1

The part of a module unit between module; and the module-declaration, which may contain only preprocessing directives; the declarations in it (via #include) are attached to the global module, and those not used by the purview are discarded.

global namespace全局命名空间[basic.namespace.general]/3

The namespace that belongs to the global scope and has no declaration; it is not an unnamed namespace and cannot be found by name lookup.

glvalue泛左值[basic.lval]/1

An expression whose evaluation determines the identity of an object, function, non-static data member, or direct base class relationship; i.e. the collective name for lvalues and xvalues.

guides (of a class template)(类模板的)指引[over.match.class.deduct]/1

A set of functions (templates) built during class template argument deduction: one per constructor, the copy deduction candidate, user deduction guides, the aggregate deduction candidate, etc.; overload resolution is performed once over them, and the return type of the winner is the deduced result.

happens before发生于…之前[intro.races]/7

The transitive closure of the union of sequenced before and synchronizes with. It determines which write a non-atomic read can see, and whether there is a data race.

hardened implementation加固实现[intro.compliance.general]/8

Introduced in C++26: whether an implementation is a hardened implementation is implementation-defined. In a hardened implementation, violating a hardened precondition of a library function (such as an out-of-range span::operator[]) results in a contract violation and termination rather than undefined behavior.

hardened precondition加固前置条件[structure.specifications]/3.5

A condition listed in the Hardened preconditions element of a library function specification. In a hardened implementation, the corresponding contract assertion is evaluated with a terminating semantic at the call; in a non-hardened implementation, a violation is undefined behavior.

hazard pointerhazard pointer[saferecl.hp.general]/1

A single-writer multiple-reader pointer owned by at most one thread. The owner makes it point to an object to inform threads that may delete that object that the object cannot yet be safely reclaimed.

header unit头文件单元[module.import]/5

A TU imported by import <h>; or import "h";, synthesized from an importable header via translation phases 1–7: it has an independent macro environment, all its declarations are implicitly exported and attached to the global module, and its macros are visible to direct importers.

heap with respect to comp and proj相对 comp 与 proj 的堆[alg.heap.operations.general]/1

In the random-access range [a, b), for all 0 < i < N the parent element a[(i−1)/2] is not "less than" a[i], and the first element can be removed by pop_heap and a new element added by push_heap in O(log N). With the default less it is a max-heap.

hidden friend隐藏友元[class.friend]/10

Informal term: a function declared (and defined) only in an in-class friend declaration. Friend declarations do not bind names, so it can only be found by ADL.

hosted implementation宿主实现[intro.compliance.general]/7

An implementation that supports all the facilities described by the standard (the full language and the full library). __STDC_HOSTED__ is 1.

hosted library facilities宿主库设施[compliance]/4

Library facilities that a hosted implementation must provide and a freestanding implementation need not. A freestanding implementation may provide an implementation-defined subset of them, or provide deleted definitions for functions among them.

identifier with special meaning特殊含义标识符[lex.name]/2

final, override, import, module, pre, post, which have a special meaning in particular contexts and are ordinary identifiers elsewhere. When ambiguous they are interpreted as ordinary identifiers by default; they cannot be used as macro names.

ill-formed program非良构程序[defns.ill.formed]

A program that is not well-formed. It falls into two categories: diagnosis required (violating a diagnosable rule) and IFNDR.

ill-formed, no diagnostic required非良构且不要求诊断(IFNDR)[intro.compliance.general]/2

The program violates a rule marked "no diagnostic is required": the program is ill-formed, but the implementation need not diagnose it, and the standard places no requirements on that program ([intro.compliance] ¶2.2). ODR violations are the typical example.

imaginary function FUN虚构函数 FUN[variant.ctor]/14

The expository device used by variant's converting constructor/converting assignment to choose the stored type: an FUN(T_i) is constructed for each candidate type for which T_i x[] = {std::forward<T>(t)}; is well-formed (i.e. not narrowing), overload resolution is performed for FUN(std::forward<T>(t)), and the selected T_j is the stored type.

immediate constant expression立即常量表达式[expr.const.const]/5

A constant expression whose result designates an immediate object or immediate function (glvalue), or whose result object is an immediate object (prvalue). Used in C++26 to determine immediate escalation.

immediate context直接语境[temp.deduct.general]/8

The deduction substitution loci themselves, excluding lambda bodies and separately instantiated constructs. Only invalid types or expressions arising in the immediate context cause deduction failure (SFINAE); errors in side effects such as instantiating a class template are hard errors.

immediate function立即函数[expr.const.imm]/4

A function declared with consteval, or an immediate-escalating function escalated because its body contains an immediate-escalating expression. Every immediate invocation of it must be a constant expression.

immediate function context立即函数语境[expr.const.imm]/1

Inside the body of an immediate function, within a subexpression of a manifestly constant-evaluated expression, or within the compound statement of if consteval. Calling an immediate function in this context does not constitute an immediate invocation.

immediate invocation立即调用[expr.const.imm]/1

A potentially-evaluated call of an immediate function that is not in an immediate function context; it is manifestly constant-evaluated and must be a constant expression.

immediate object立即对象[expr.const.const]/2

An object whose complete object has a consteval-only constituent value, or a constituent reference referring to an immediate object/immediate function. It can only be the object of a constexpr variable, a template parameter object, or an object that comes into and goes out of existence within a single constant evaluation.

immediate subexpression直接子表达式[intro.execution]/3

The constituent expressions of the operands of an expression E, functions implicitly invoked by E, the default arguments and default member initializers used, etc.; their transitive closure is the subexpressions. Expressions within a lambda body are not subexpressions of the lambda-expression.

immediate-escalating立即升级[expr.const.imm]/2

An immediate constant expression or a non-constant immediate invocation that is not in an immediate function context is called an immediate-escalating expression; it may appear only in an immediate-escalating function (the call operator of a non-consteval lambda, a defaulted function that is not user-provided, an instantiation of a constexpr template), and makes that function an immediate function. Since C++23.

immediately-declared constraint立即声明约束[temp.param]/9

The constraint expression C<T, A...> that a type-constraint C<A...> imposes on a type T (the constrained type inserted as the first argument); if T is a pack, it is (C<T, A...> && ...).

implementation limit实现限制[defns.impl.limits]

A restriction an implementation imposes on programs (nesting depth, template instantiation depth, etc.). When a limit is exceeded, the implementation may reject a program that would otherwise execute correctly; Annex B gives recommended minimums.

implementation-defined behavior实现定义行为[defns.impl.defined]

Behavior, for a well-formed construct and correct data, that depends on the implementation and that each implementation must document, such as sizeof(int) or the signedness of char. These form the parameters of the abstract machine.

implicit conversion sequence隐式转换序列[over.best.ics.general]/1

The sequence of conversions needed to convert an argument to the corresponding parameter type, modeling "copy-initializing the parameter from the argument"; it is concerned only with type, cv-qualification, and value category. It takes three forms: standard, user-defined, and ellipsis.

implicit expression variations隐式表达式变体[concepts.equality]/6

For an expression in a library requires-expression that does not modify some const lvalue operand, there is an implicit requirement that the variations replacing that operand with a non-const lvalue or a (possibly const) rvalue are also valid and have the same semantics; the extent to which an implementation checks the syntax of these variations is unspecified.

implicit instantiation隐式实例化[temp.inst]/2

The compiler automatically generates a definition from the template when a specialization is used in a way that requires its definition (or, for a class, a complete type); instantiating a class template generates only the declarations of its members, and member definitions are instantiated separately on demand.

implicit object member function隐式对象成员函数[dcl.fct]/8

A non-static member function without an explicit object parameter, i.e. a traditional member function; its object parameter is the implicit object parameter.

implicit object parameter隐式对象形参[over.match.funcs.general]/2

An extra first parameter that implicit object member functions (and static member functions, when there is an implied object argument) are considered to have for the purposes of overload resolution, of type cv X& or cv X&&; user-defined conversions cannot be applied to it.

implicit-lifetime class隐式生存期类[class.prop]/8

An aggregate whose destructor is not user-provided, or a class that has at least one trivial eligible constructor and a trivial, non-deleted destructor; its objects can be implicitly created by malloc, memcpy, etc.

implicit-lifetime type隐式生存期类型[basic.types.general]/7

Scalar types, implicit-lifetime class types, any array type, and cv-qualified versions of these; operations such as malloc and memcpy can implicitly create objects of these types in storage ([intro.object]).

implicitly captured隐式捕获[expr.prim.lambda.capture]/7

When an entity is potentially referenced in a scope where it is odr-usable, and (ignoring typeid) is potentially evaluated, it is captured by every intervening lambda that has a capture-default and does not capture it explicitly; this is determined syntactically and does not require an odr-use.

implicitly creating objects隐式创建对象[intro.object]/13

Operations such as malloc, memcpy, operator new, and starting the lifetime of a byte array create, in the specified storage, and start the lifetimes of those objects of implicit-lifetime types that would give the program defined behavior; if no such set exists, the behavior is UB.

implicitly default-constructible可隐式默认构造[pairs.pair]/7

A type that can be copy-list-initialized from empty braces {} (its default constructor is not explicit). The default constructor of pair/tuple is explicit when some element does not have this property.

implicitly movable entity可隐式移动的实体[expr.prim.id.unqual]/15

A non-volatile object variable with automatic storage duration, or a variable of rvalue reference type to a non-volatile object type.

implied object argument隐含对象实参[over.match.funcs.general]/3

The first argument in the argument list of overload resolution that represents the object being operated on, such as a in a.f(x) or (*this) in an unqualified call inside a class, matched against the candidate's implicit (or explicit) object parameter.

importable C++ library header可导入的 C++ 库头文件[headers]/4

The C++ library headers in Table 24 (for a freestanding implementation, the subset it provides), which can be imported as header units; the C facility headers are not among them.

importable header可导入头文件[module.import]/5

An implementation-defined set of headers that can be imported as header units, including at least all importable C++ library headers (Table 24 in [headers]).

incomplete type不完整类型[basic.types.general]/3

Collective name for incompletely-defined object types and cv void; it cannot be used to define objects, as the operand of sizeof, etc. A class can become complete after its definition, whereas void and T[] are never complete.

incompletely-defined object type不完全定义的对象类型[basic.types.general]/3

A class that has been declared but not defined, an enumeration in certain contexts, an array of unknown bound, or an array of incomplete element type. Its size and layout are unknown.

indeterminate value不确定值[basic.indet]/1

The value of uninitialized bytes of an object with dynamic storage duration or of a variable marked [[indeterminate]]; apart from the exception for copying through unsigned char/std::byte, producing it is UB.

indeterminately sequenced不定序[intro.execution]/8

One of two evaluations is sequenced before the other, but it is unspecified which; they do not overlap. A function call and evaluations outside it, and the initializations of the parameters, are related this way.

index (of a pack-index-specifier)包索引[dcl.type.pack.index]/2

The value V of the constant expression I in P...[I], which must satisfy 0 ≤ V < sizeof...(P); out of range is ill-formed. The pack-index-specifier denotes the V-th type in the pack and is itself a pack expansion (C++26).

indirection间接[expr.unary.op]/1

The unary * operation: the operand is a prvalue pointer to an object or function type T, and the result is an lvalue of type T designating the object or function pointed to; if the pointer does not point to an object or function, the behavior is UB (except in the case of typeid).

indistinguishable conversion sequences不可区分的转换序列[over.ics.rank]/1

Two implicit conversion sequences are indistinguishable when neither is better than the other; [over.ics.rank] defines only a partial order, and many pairs of sequences are indistinguishable.

inhabit栖居[basic.scope.scope]/2

A declaration inhabits the immediate scope at its locus. By default this is also its target scope, in which the name is bound.

inherited constructor继承构造函数[namespace.udecl]/2

Introduced by a using-declaration that names a constructor (using Base::Base;): when looking up derived class constructors and building the overload candidate set, base class constructors are treated as constructors of the derived class; once one is selected, the remaining subobjects are initialized in the default manner.

init-capture packinit-capture 包[temp.variadic]/3

A lambda capture of the form ...xs = expr, introducing one init-capture for each element of the pack expansion in the initializer (C++20).

initial suspend point初始挂起点[dcl.fct.def.coroutine]/5

The suspension point at which a coroutine suspends at co_await promise.initial_suspend().

initializer-list constructorinitializer-list 构造函数[dcl.init.list]/2

A constructor whose first parameter is std::initializer_list<E> (or a cv reference to it) and whose remaining parameters all have default arguments. In list-initialization from a non-empty list it is preferred over other constructors.

initializing declaration初始化声明[dcl.init.general]/22

The declaration that specifies the initialization of a variable (an explicit initializer or default-initialization). Usually it is the definition; the initializing declaration of a non-inline static data member can be its in-class declaration.

injected declaration注入声明[expr.const.reflect]/1

A declaration produced by constant evaluation (currently std::meta::define_aggregate); it can only be produced by the evaluation of a consteval block, is located at a synthesized point after the end of the translation unit, and is visible only through the evaluation context. C++26.

injected-class-name注入类名[class.pre]/2

The class name as also bound in the scope of the class (template) itself; access checking treats it as a public member. In a class template, used without arguments it refers to the current specialization.

inline functioninline 函数[dcl.inline]/2

A function declared with inline (or implicitly inline, such as a member function defined in its class, or a constexpr function). With external or module linkage it can be defined in multiple TUs, yet remains the same entity with the same address; inline substitution is only a non-binding hint.

inline namespace内联命名空间[namespace.def.general]/4

A namespace declared with inline namespace. Its members behave as members of the enclosing namespace for ADL, unqualified/qualified lookup, template specialization, etc.; commonly used for library ABI versioning (e.g. libc++'s std::__1).

inline namespace set内联命名空间集合[namespace.def.general]/7

The transitive closure of all inline namespaces (recursively) in a namespace N.

inline variableinline 变量[dcl.inline]/2

A variable declared with inline (C++17), or a static data member whose first declaration has constexpr. Like inline functions it enjoys the ODR exemption: it can be defined in multiple TUs, and the whole program has only one object.

inlines the receiver内联接收器[exec.recv.concepts]/6

All objects constructed from rcvr during the evaluation of connect(sndr, rcvr) end their lifetimes within that evaluation, i.e. the operation state does not store the receiver and rebuilds it on demand with Rcvr::make_receiver_for(addressof(op)) (inlinable_receiver).

insert iterator插入迭代器[insert.iterators.general]/1

An output iterator adaptor that translates an assignment *it = x into a push_back, push_front, or insert on a container, making copying algorithms work in insert mode rather than overwrite mode.

instantiation context实例化语境[module.context]/1

The set of program points that determines which declarations ADL for dependent names can find and which declarations are reachable; for nested instantiations it includes the end of the module's primary interface unit.

integer conversion rank整数转换等级[conv.rank]/1

An ordering among integer types: long long > long > int > short > signed char; unsigned types have the same rank as the corresponding signed types, character types the same rank as their underlying types, and bool the lowest; used for integral promotion and the usual arithmetic conversions.

integer-class type整数类类型[iterator.concept.winc]/2

An implementation-defined type that behaves like an integer and is wider than all integer types of the same signedness (not necessarily a class type), usable as a difference type, such as the difference type of iota_view<long long>.

integer-like type类整数类型[iterator.concept.winc]/4

A type other than cv bool that models integral, or an integer-class type; further divided into signed-integer-like and unsigned-integer-like. An iterator's difference type must be a signed-integer-like type.

integral constant expression整型常量表达式[expr.const.const]/6

An expression of integral or unscoped enumeration type that, implicitly converted to a prvalue, is a core constant expression. Used for bit-field widths, enumerator initializers when the underlying type is not fixed, and alignas.

integral promotion整型提升[conv.prom]/8

The standard conversion of integers of rank lower than int, bit-fields, character types, bool, and unscoped enumerations to int (or unsigned int, etc.); in overload resolution it ranks as a "promotion", better than an ordinary conversion.

integral type整型[basic.fundamental]/11

Character types, bool, signed and unsigned integer types, and cv-qualified versions of these; a synonym is integer type. Enumerations are not integral types.

interface dependency接口依赖[module.import]/10

A TU has an interface dependency on U if it imports U (including the implicit import by a module-declaration), or has an interface dependency on some TU that depends on U. A TU must not have an interface dependency on itself (circular imports are prohibited).

internal linkage内部链接[basic.link]/3

The name can be referred to by declarations in other scopes only within its own TU. Sources: explicit static, non-template non-volatile const variables at namespace scope (with exceptions), anonymous union members, and everything in an unnamed namespace.

intervene介于其间(的作用域)[basic.scope.scope]/1

A scope X intervenes between a program point P and a scope S (that does not contain P) if X is or contains S but does not contain P. Used in determinations such as odr-usability.

inv-quals调用限定(inv-quals)[func.wrap.move.general]/2

The qualifiers used when invoking the target object in move_only_function/copyable_function: cv& when the signature has no ref-qualifier, cv ref otherwise. The target is invoked as static_cast(f).

invalid iterator无效迭代器[iterator.requirements.general]/16

An iterator that may be singular, such as an iterator invalidated by a container operation. Dereferencing an invalidated iterator is undefined behavior.

invalid pointer value无效指针值[basic.compound]/3

One of the four states of a pointer value (the other three being pointer to an object/function, past-the-end, and null pointer value); for example, certain integer-to-pointer conversions may produce one.

invocation sequence调用序列[stacktrace.general]/2

The invocation sequence of the current evaluation x0 in the current thread is the sequence of evaluations (x0, …, xn) in which each xi is within the function invocation x(i+1); a stacktrace is an approximate representation of it.

is-callable-fromis-callable-from 约束[func.wrap.move.ctor]/1

An exposition-only variable template: requires the target type VT to be invocable both with the signature's cv ref and with inv-quals, with the result convertible to R (non-throwing for a noexcept signature). It is the core constraint of the converting constructor and the in_place_type constructor.

iterator invalidation迭代器失效[container.reqmts]/67

A container operation causes previously obtained iterators, pointers, or references to no longer be guaranteed to refer to the original element (or to be usable). The general container rule is "not invalidated unless otherwise specified"; each container's insertion, erasure, reallocation, and rehash clauses give the specific rules.

key equality predicate键相等谓词[unord.req.general]/4

The object of type Pred in an unordered container; it must be an equivalence relation on Key and must be consistent with the hash function: equivalent keys have the same hash value.

keyword关键字[lex.key]/1

The identifiers in Table 5 that are unconditionally treated as keywords in phases 6 and 7 (except in attribute tokens), plus the import/module/export placeholder keywords that have no spelling.

known to be initialized已知已初始化(的子对象)[except.ctor]/3

A subobject that is not an anonymous union member and whose initialization is arranged by rules such as [class.base.init] and [dcl.init.aggr]; when the initialization of an object is terminated by an exception, such subobjects that have completed initialization are destroyed.

language linkage语言链接[dcl.link]/1

A property (C++, C, etc.) of functions and variables with external linkage and of all function types, determining the conventions for linking with code in other languages. According to the standard, two function types differing only in language linkage are distinct types, but mainstream compilers do not distinguish them.

layout mapping布局映射[mdspan.layout.reqmts]/1

A callable object mapping a multidimensional index to a one-dimensional offset; it must provide extents(), required_span_size(), and queries for properties such as unique/exhaustive/strided. The LayoutPolicy::mapping<E> of mdspan is such a type.

layout-compatible classes布局兼容的类[class.mem.general]/28

Two standard-layout structs whose common initial sequence comprises all members and bit-fields; or two standard-layout unions with the same number of members whose corresponding members (in any order) are layout-compatible.

layout-compatible enumerations布局兼容枚举[dcl.enum]/10

Two enumeration types with the same underlying type and the same set of values.

layout-compatible types布局兼容类型[basic.types.general]/9

The same type ignoring cv-qualification, layout-compatible enumerations, or layout-compatible standard-layout class types. Distinct scalar types (such as int and unsigned) are never layout-compatible.

leap second闰秒[time.zone.leap.overview]/1

A second inserted (or deleted) to keep UTC aligned with the Earth's rotation. sys_time does not count leap seconds, while utc_time does; the difference between them is the total number of leap seconds inserted since 1970. The leap second table is provided with the time zone database (tzdb::leap_seconds).

lifetime生命周期[basic.life]/2

A runtime property of an object or reference: from when storage is obtained and initialization is complete, until the destructor call starts (class types), it is destroyed (non-class types), or its storage is released/reused.

lifetime extension生命周期延长[class.temporary]/6

When a reference binds directly to a temporary object (or its subobject) through temporary materialization, member access, subscripting, built-in casts, conditional/comma expressions, etc., the temporary persists until the end of the reference's lifetime; binding through a function call does not extend it.

line number行号[cpp.line]/2

The line number of the current physical source line: one plus the number of new-lines read or introduced in phase 1 while processing the source file up to the current preprocessing token. #line can change the presumed line number.

linear algebra value type线性代数值类型[linalg.reqs.val]/1

The value_type of the input/output mdspans and the Scalar template parameters in ; it must model the scalar concept composed of semiregular and others, and a value-initialized object must act as the additive identity.

linkage链接[basic.link]/2

A property of a name that determines whether declarations of the same name in different scopes/TUs can denote the same entity: external linkage, module linkage, internal linkage, or no linkage.

linkage-specification链接规格[dcl.link]/2

extern "C" { ... } or extern "C" declaration: specifies the language linkage for the function types and for the functions and variables with external linkage within it; it can be nested, does not establish a scope, and can only appear at namespace scope.

list-initialization列表初始化[dcl.init.list]/1

Initialization of an object or reference with a braced-init-list. Following the order in <a class="xref std local" href="../en/std/dcl.init.list.html" data-tip="9.5.5 List-initialization — How brace initialization chooses what to do: the twelve-step decision of ¶3, why initializer-list constructors always win, the type and lifetime of the backing array, the full definition of narrowing conversions, and the special rules for auto and CTAD with braces.">[dcl.init.list] ¶3, it dispatches to aggregate initialization, constructors (initializer-list constructors preferred), single-element initialization, etc., and forbids top-level narrowing.

literal encoding字面量编码[lex.charset]/4

The encoding, determined by the encoding prefix, used to encode the characters of a character literal or string literal into a sequence of code units: the ordinary literal encoding (no prefix), the wide literal encoding (L), and UTF-8/16/32 (u8/u/U). The first two are implementation-defined.

literal operator字面量运算符[over.literal]/2

A namespace-scope function declared with a literal-operator-id as its name; its parameter list must be one of 13 fixed forms; used to implement user-defined literals.

literal operator template字面量运算符模板[over.literal]/2

A function template declared with a literal-operator-id as its name; its function parameter list must be empty, and it must be a numeric literal operator template or a string literal operator template.

literal suffix identifier字面量后缀标识符[over.literal]/1

The ud-suffix or identifier in a literal-operator-id, i.e. _km in operator""_km. Those not beginning with an underscore or containing __ are reserved, and declarations using them are IFNDR.

literal type字面量类型[basic.types.general]/8

cv void, a scalar, a reference, an array of literal type, or a class type that has a constexpr destructor and satisfies the conditions of [basic.types.general]/8; it indicates that objects of the type "can possibly" be created in constant expressions.

little-endian小端[bit.endian]/1

A byte order in which the least significant byte of a multi-byte scalar comes first in storage, with the remaining bytes in ascending order of significance. x86 and common ARM configurations are little-endian.

load factor负载因子[unord.req.general]/228

The average number of elements per bucket in an unordered container, size()/bucket_count(); the container tries to keep it no greater than max_load_factor() (initially 1.0 for standard containers).

local class局部类[class.local]/1

A class declared within a function definition; it cannot odr-use automatic variables of the enclosing function, its member functions must be defined within the class, and it cannot have static data members or member templates.

local entity局部实体[basic.pre]/9

A variable with automatic storage duration, a structured binding whose corresponding variable is such an entity, a result binding, or *this. Only local entities are subject to the odr-usable and lambda capture rules.

local time (local_time)本地时间[time.clock.local]/1

The family of time_points local_time parameterized by the pseudo-clock local_t: it represents "the wall-clock time in some time zone not yet specified". It has full time_point arithmetic but no now(), and cannot be mixed with sys_time; converting it to UTC must go through some time_zone.

locale-specific behavior特定于区域设置的行为[defns.locale.specific]

Behavior that depends on local conventions of nationality, culture, and language, and that each implementation must document.

lock锁(对象)[thread.lock.general]/1

An object that holds a reference to a lockable object and may unlock it upon its own destruction, such as lock_guard, scoped_lock, unique_lock, shared_lock; a lock does not manage the lifetime of the lockable object.

lock-free execution无锁执行[intro.progress]/2

Execution of an atomic function that is defined or indicated to be lock-free. When only one unblocked thread remains it must complete (obstruction-free), and under concurrency at least one should complete.

locus (point of declaration)声明点[basic.scope.pdecl]/1

The program point at which a declaration takes effect ("precedes" subsequent code). The locus of a declarator is after the complete declarator and before its initializer; that of a class name is right after the name in the class-head; that of a range-for loop variable is after the initializer to the right of the colon.

logical source line逻辑源行[lex.phases]/1

A line formed by splicing together several physical source lines after phase 2 deletes each "backslash + optional whitespace + new-line". Preprocessing directives operate on logical source lines.

lookup context查找上下文[basic.lookup.qual.general]/2

Where a qualified name is looked up: for a member-qualified name, the type of the object expression; for other qualified names, the type, template, or namespace named by the preceding nested-name-specifier.

lookup set查找集[class.member.lookup]/2

The lookup set S(N,C) for a name N in class C, consisting of a declaration set and a subobject set, used to compute the result of a search in class scope and any ambiguity.

lvalue左值[basic.lval]/1

A glvalue that is not an xvalue. Variable names (including variables of rvalue reference type), *p, ++i, and string literals are all lvalues.

lvalue reference左值引用[dcl.ref]/2

A reference type declared with &. It is a distinct type from an rvalue reference; a non-const lvalue reference can bind only to lvalues.

lvalue-to-rvalue conversion左值到右值转换[conv.lval]/1

The standard conversion of a glvalue of non-function, non-array type to a prvalue, which in essence reads the object's value; for non-class types cv is removed, while for class types the result object is copy-initialized.

macro definition宏定义[cpp.import]/4

Each #define directive encountered while preprocessing each translation unit produces a distinct macro definition; it has at most one point of definition and one point of undefinition in each translation unit, and can be imported via header units.

macro name宏名[cpp.replace.general]/8

The identifier immediately following define. There is one namespace for macro names, and they are not subject to scope.

Mandates (element)Mandates 要素[structure.specifications]/3.2

An element of a library function specification: conditions whose violation makes the program ill-formed (diagnosis required). Usually implemented with a static_assert in the function body, so it cannot be detected by a requires-expression.

manifestly constant-evaluated显然常量求值[expr.const.defns]/1

Expressions the language requires to be evaluated at translation time: a constant-expression, the condition of if constexpr, consteval blocks, immediate invocations, constraint substitution, and initializers of variables usable in constant expressions or constant-initialized. This is exactly the property observed by std::is_constant_evaluated() and if consteval.

manipulator操纵符[std.ios.manip]

A function or object that can be placed in a << or >> chain to change stream state (format flags, width, fill, etc.) or perform an action (such as flushing or skipping whitespace); parameterless ones are function pointers such as ios_base& (*)(ios_base&), and those with parameters (setw, quoted, etc.) return objects of unspecified type.

maximal munch最长匹配[lex.pptoken]/5

Informal term: the next preprocessing token is the longest sequence of characters that could constitute a preprocessing token, even if that would cause subsequent analysis to fail (except in cases such as raw strings, <::, [::).

member of the current instantiation当前实例化的成员[temp.dep.type]/4

A name for which (the lookup context of a qualified name being the current instantiation) lookup finds a member of a class that is the current instantiation; if what is found is a member declaration in the current instantiation, it is called a dependent member of the current instantiation.

member template成员模板[temp.mem]/1

A template declared within a class or class template (member function templates, member class templates, etc.). A member function template cannot be virtual, and a destructor cannot be a template.

member-qualified name成员限定名[basic.lookup.qual.general]/2

The unqualified-id after ./-> in a class member access expression, or a component name of a nested-name-specifier of the form type-name ::/namespace-name :: there; the lookup context is the type of the object expression.

memory location内存位置[intro.memory]/3

A non-bit-field scalar object, or the storage occupied by a maximal sequence of adjacent bit-fields all of non-zero width. Different memory locations can be accessed by different threads without interfering with each other; it is the minimal granularity of data races ([intro.races]).

mixed-endian混合字节序[bit.endian]/2

An execution environment in which scalar types are neither all big-endian nor all little-endian (e.g. 32-bit integers on the PDP-11). In that case std::endian::native equals neither big nor little.

model (a concept)建模(概念)[res.on.requirements]/1

A set of template arguments models a library concept if and only if it satisfies the concept (the constraint expression is true) and meets all the semantic requirements given in the concept's specification. If they satisfy but do not model it while the validity or meaning of the program depends on this, the program is IFNDR.

modifiable lvalue可修改的左值[basic.lval]/10

An lvalue whose type is neither const-qualified nor a function type. Built-in assignment, increment, and decrement require a modifiable lvalue.

modification order修改顺序[intro.races]/4

The total order of all modifications to a particular atomic object; the modification orders of different objects need not be combinable into a single total order.

module implementation unit模块实现单元[module.unit]/2

A module unit that is not an interface unit (module M; or an implementation partition module M:P;). It cannot be exported; an implementation unit without a partition name cannot be imported and implicitly imports the primary interface unit.

module interface unit模块接口单元[module.unit]/2

A module unit whose module-declaration begins with export; export declarations can appear only in its purview.

module linkage模块链接[basic.link]/4

C++20: the linkage of a namespace-scope name that is attached to a named module and not exported; it can only be referred to by TUs of the same module.

module partition模块分区[module.unit]/3

A module unit whose module-declaration contains :P, divided into interface partitions and implementation partitions; it can be imported only by units of the same module with import :P;, and is invisible outside the module.

module unit模块单元[module.unit]/1

A translation unit that contains a module-declaration (export module M;, module M:P;, etc.).

more constrained更受约束[temp.constr.order]/5

D1 is at least as constrained as D2 (both are constrained and D1's associated constraints are eligible for subsumption and subsume D2's, or D2 is unconstrained), but not vice versa. Used in overload resolution and various partial orderings.

more cv-qualified更多 cv 限定[basic.type.qualifier]/5

A partial order on sets of cv-qualifiers: no cv < const, volatile < const volatile; const and volatile are not comparable.

more specialized更特化[temp.spec.partial.order]/1

Template F is more specialized than G if F is at least as specialized as G and G is not at least as specialized as F; partial specializations are compared by rewriting them as function templates.

most derived object最派生对象[intro.object]/6

An object whose type is a most derived class, or an object of non-class type — i.e. every object other than a base class subobject. Its type is the dynamic type of a glvalue.

most vexing parse最令人烦恼的解析[dcl.ambig.res]/1

Informal term: code of the form S w(int()); or T t(U(x)); is parsed, by the "if it can be a declaration, it is a declaration" disambiguation rule, as a function declaration rather than an object definition. See [dcl.ambig.res], [stmt.ambig].

movable-box可移动盒[range.move.wrap]/1

An exposition-only class template that behaves like optional<T>, except that default construction constructs a value, and when T is not assignable, assignment is emulated by "destroy and then reconstruct in place"; adaptors use it to store non-assignable function objects such as lambdas, keeping the view movable. Named copyable-box before C++23.

move assignment operator移动赋值运算符[class.copy.assign]/3

A non-static non-template operator= with exactly one non-object parameter of type cv X&&.

move constructor移动构造函数[class.copy.ctor]/2

A non-template constructor whose first parameter is cv X&& and whose remaining parameters all have default arguments. It is implicitly declared only if there is no user-declared copy constructor, copy assignment operator, move assignment operator, or destructor.

move-eligible可隐式移动的(表达式)[expr.prim.id.unqual]/15

An id-expression or splice-expression that names an implicitly movable entity, is the (possibly parenthesized) operand of return/co_return/throw, and is separated from it only by block scopes; it is an xvalue (since C++23).

multi-pass guarantee多遍保证[iterator.concept.forward]/4

A semantic guarantee of forward iterators: a == b implies ++a == ++b, and incrementing a copy of a does not affect *a. It allows the same sequence to be traversed multiple times.

multicharacter literal多字符字面量[lex.ccon]/1

A character literal containing more than one c-char, such as 'ab'. It must not have an encoding prefix; it is conditionally-supported, has type int, and has an implementation-defined value.

multidimensional index space多维下标空间[mdspan.overview]/1

The Cartesian product of a number of half-open integer intervals [Lᵢ, Uᵢ). The number of intervals is the rank; the size is the product of the interval lengths, and is 1 when the rank is 0. extents represents such a space (with lower bounds always 0).

mutable iterator可变迭代器[iterator.requirements.general]/5

An iterator that also meets the output iterator requirements, i.e. the element it points to can be modified through it, such as vector<int>::iterator.

name名字[basic.pre]/3

An identifier (other than in a label, a goto target, a module name, or an attribute token), conversion-function-id, operator-function-id, or literal-operator-id. Every name is introduced by some declaration.

name lookup名字查找[basic.lookup.general]/1

The process of associating a use of a name with a set of declarations of that name; overload resolution and access checking come only afterwards. See [basic.lookup].

name-independent declaration名字无关声明[basic.scope.scope]/5

C++26: a declaration whose name is _ of an automatic variable (not a parameter), a structured binding not at namespace scope, a result binding, an init-capture, or a non-static data member. Such declarations can be repeated without conflicting.

named locale有名字的 locale[locale.general]/8

A std::locale constructed from a name string, or composed from parts of two named locales; such locales can be compared for equality by name, and locale::global calls setlocale only for them. All other locales are unnamed, and name() returns "*".

named module具名模块[module.unit]/1

The collection of all module units with the same module-name. Dots in a module name carry no hierarchical meaning.

namespace alias命名空间别名[namespace.alias]/3

A name declared by namespace X = A::B;, whose underlying entity is the namespace it refers to; it cannot be used to extend the namespace.

narrow character type窄字符类型[basic.fundamental]/7

The ordinary character types plus char8_t; every possible bit pattern of their object representation represents a distinct value.

narrow string literal窄字符串字面量[lex.string]/6

Collective name for ordinary string literals and UTF-8 string literals.

narrowing conversion窄化转换[dcl.init.list]/7

These kinds of implicit conversions: floating → integer, floating demotion, integer → floating, integer narrowing, and pointer/pointer-to-member → bool (each with exceptions such as for constant expressions). Ill-formed at the top level of list-initialization.

native pathname format原生路径名格式[fs.class.path.general]/5

The path string format accepted by the host operating system (e.g. backslash separators and wide characters on Windows). path::native() and c_str() return this representation; on POSIX it is the same as the generic format.

native resolution原生分辨率[thread.req.timing]/6

The finest timing resolution an implementation can provide in timeout functions, depending on the operating system and hardware.

necessarily reachable必然可达[module.reach]/1

A TU that is necessarily reachable from a point P: a module interface unit on which the TU containing P has an interface dependency before P, or a TU directly imported before P.

needed for constant evaluation为常量求值所需[expr.const.defns]/2

A constexpr function or potentially-constant variable named by a potentially constant evaluated expression; this triggers implicit instantiation of constexpr function templates even if they are not odr-used.

nested class嵌套类[class.nest]/1

A class declared within another class. It is a member of the enclosing class, but its objects have no implicit association with objects of the enclosing class.

nested within嵌套于[intro.object]/4

a is nested within b: a is a subobject of b, or b provides storage for a, or this holds transitively through an intermediate object.

never-quite-empty guarantee几乎永不为空[variant.variant.general]/1

A design trade-off of std::variant: the contained value must be nested within the object (no heap allocation), so the strong never-empty guarantee is not provided; in normal use it always holds a value, and it may enter the valueless state only when an exception interrupts a type switch.

new-extended alignmentnew 扩展对齐[basic.align]/3

An alignment greater than __STDCPP_DEFAULT_NEW_ALIGNMENT__; in this case a new-expression uses an allocation function taking std::align_val_t instead.

new_handlernew 处理函数[new.handler]

The handler function called when allocation by operator new fails; it must free up memory and return, throw an exception of the bad_alloc family, or terminate the program. Its initial value is a null pointer; it is installed with set_new_handler.

node handle节点句柄[container.node.overview]/1

A move-only object that owns a single element extracted from an associative or unordered container (together with its node and allocator), which can be inserted into another container with compatible nodes without copying or moving the element; modifying the key through key() is permitted.

nodiscard callnodiscard 调用[dcl.attr.nodiscard]/3

A function call expression that calls a function marked nodiscard or whose return type is exactly a nodiscard type, or an explicit type conversion that constructs an object through a nodiscard constructor or initializes an object of nodiscard type. A warning is encouraged when it appears as a potentially-evaluated discarded-value expression of non-void type.

nodiscard typenodiscard 类型[dcl.attr.nodiscard]/3

A (possibly cv-qualified) class or enumeration type marked [[nodiscard]] in some reachable declaration.

nofun-type-id非函数类型标识[dcl.name]/1

A type-id whose outermost declarator cannot be a function declarator; in the current draft it is used by sizeof, alignof, C-style casts, new (T), and trailing return types, so that sizeof(int()) is parsed as an expression.

non-constant library call非常量库调用[library.c]/3

A call to a library function that prevents the enclosing expression from being a core constant expression. E.g. a call to a C library function that raises a floating-point exception other than FE_INEXACT.

non-deduced context非推导语境[temp.deduct.type]/5

Parts of a type that do not participate in template argument deduction and only use values deduced elsewhere or explicitly specified, such as the prefix of a qualified name (typename A<T>::type), decltype expressions, subexpressions involving template parameters, and function parameter packs that are not trailing.

non-dependent sender非依赖发送器[exec.async.ops]/13

A sender type whose completion signatures can be determined without depending on the execution environment; i.e. get_completion_signatures() does not exit with dependent_sender_error. Otherwise it is a dependent_sender, such as read_env(get_scheduler).

non-initialization odr-use非初始化 odr 使用[basic.start.dynamic]/4

An odr-use not caused directly or indirectly by the initialization of a non-block variable with static/thread storage duration; deferred dynamic initialization must happen before such a use.

non-propagating-cache非传播缓存[range.nonprop.cache]/1

An exposition-only class template that behaves like optional<T>, except that copying/moving does not propagate the contained value (both the target and the moved-from source become empty); views use it to temporarily store iterators or prvalue inner ranges, so the cache belongs only to the current view object.

non-specialized (constant template argument)非特化的(常量模板实参)[temp.spec.partial.general]/8

A constant template argument in the argument list of a partial specialization that is exactly the name of a constant template parameter; all other constant template arguments are specialized.

non-template function非模板函数[dcl.fct]/22

A function that is not a function template specialization (member functions of class templates are also non-template functions); it is preferred over function template specializations in overload resolution.

non-throwing exception specification非抛出的异常说明[except.spec]/1

The exception specification predicate is true. If the search for a handler leaves the body of such a function, std::terminate is called.

normal form (path)规范形式(路径)[fs.path.generic]/6

The result of a purely lexical normalization of a generic-format pathname: unifying separators, removing '.', eliminating 'x/..', removing '..' above the root directory, etc.; an empty path becomes '.'. lexically_normal() returns it; it does not access the file system and therefore does not resolve symbolic links.

normalization规范化[temp.constr.normal]/2

The process of turning a constraint expression into a constraint: parentheses are transparent, &&/|| are split into conjunctions/disjunctions, non-dependent concept-ids are inlined with their parameter mappings composed, &&/|| folds become fold expanded constraints, and all other expressions become atomic constraints.

Normalization Form C (NFC)规范组合形式[lex.name]/1

One of the Unicode normalization forms: canonical decomposition followed by canonical composition, so that e + U+0301 and the precomposed é (U+00E9) yield the same code point sequence. C++ requires identifiers to already be in NFC, otherwise the program is ill-formed; compatibility equivalence (NFKC) is not used, so fi and fi are different identifiers.

null pointer constant空指针常量[conv.ptr]/1

An integer literal with value zero, or a prvalue of type std::nullptr_t. '\0', false, and const variables with value 0 are not.

null statement空语句[stmt.expr]/1

An expression statement ; with the expression omitted. Commonly used as an empty loop body, and also the statement to which [[fallthrough]] applies.

null terminator空终止符[basic.string.general]/3

The object with value charT() pointed to by data() + size() in a basic_string; it exists at all times, making c_str() constant time. Modifying it to a value other than charT() is undefined behavior. basic_string_view has no such guarantee.

null-terminated byte string (NTBS)以零结尾的字节串[byte.strings]/1

A character sequence whose highest-addressed element with defined content has the value zero and all of whose other elements are non-zero. A string literal is a static ntbs.

null-terminated multibyte string (NTMBS)以零结尾的多字节串[multibyte.strings]/2

An ntbs that constitutes a sequence of valid multibyte characters, beginning and ending in the initial shift state.

numeric escape sequence数值转义序列[lex.ccon]/3

An octal (\101, \o{101}) or hexadecimal (\x41, \x{41}) escape sequence; it gives the value of one code unit directly rather than a character to be encoded.

numeric literal operator template数值字面量运算符模板[over.literal]/5

A literal operator template whose template parameter list has a single constant template parameter pack with element type char (template<char...>); the characters of the integer or floating-point literal are passed as template arguments.

numeric type数值类型[numeric.requirements]/1

A cv-unqualified object type meeting Cpp17DefaultConstructible, Cpp17CopyConstructible, Cpp17CopyAssignable, and Cpp17Destructible; complex and valarray may be instantiated only with numeric types, and the behavior is undefined if operations on these types throw exceptions.

object declaration对象声明[dcl.pre]/8

A declaration that is not a typedef declaration and in which the type associated with the declarator-id is an object type or a reference type. If the type is neither a function nor an object/reference (e.g. void), the program is ill-formed.

object expression对象表达式[expr.ref]/4

The E1 in a class member access E1.E2 (the *(E1) after E1->E2 is reduced to (*(E1)).E2). It is always evaluated, even if E2 is a static member.

object parameter对象参数[dcl.fct]/9

The explicit object parameter or the implicit object parameter of a non-static member function; the non-object-parameter-type-list is the parameter-type-list with it removed.

object pointer type对象指针类型[basic.compound]/3

The type of a pointer to cv void or to an object type; void* is an object pointer type but not a "pointer to object type".

object representation对象表示[basic.types.general]/2

The sequence of sizeof(T) unsigned char objects occupied by a non-bit-field complete object of complete object type T; the object representation of a bit-field is the bits it occupies.

object type对象类型[basic.types.general]/6

A (possibly cv-qualified) type that is not a function type, not a reference type, and not cv void; it includes incomplete class and array types.

object-like macro对象式宏[cpp.replace.general]/11

A macro defined by #define identifier replacement-list: thereafter each instance of the macro name is replaced by the replacement list and rescanned. There must be whitespace between the macro name and the replacement list.

observable behavior可观察行为[intro.abstract]/8

The program behavior an implementation must reproduce: accesses through volatile glvalues, data delivered to the host environment to be written into files, and prompts on interactive devices appearing before waiting for input.

observable checkpoint可观察检查点[intro.abstract]/5

Introduced in C++26: certain events during execution (such as a call to std::observable_checkpoint, or the return of a stdio call that delivers data to the host environment). It separates earlier observable behavior from later UB, so that the former is unaffected by the UB.

odr-usable可 ODR 使用[basic.def.odr]/10

The condition under which a local entity can be odr-used in a scope: only block scopes, contract-assertion scopes, lambda/requires parameter scopes, or the scope of a lambda that captures it intervene. Odr-using a local entity where it is not odr-usable is ill-formed.

odr-useODR 使用[basic.def.odr]/5

A variable is odr-used when it is named by a potentially-evaluated expression, unless one of the exceptions applies (such as "only reading a value known at compile time" or "discarded-value with no lvalue-to-rvalue conversion"); a function is odr-used when it is named in a potentially-evaluated way (or is a virtual function that is not pure). A non-inline function or variable that is odr-used must have exactly one definition.

opaque-enum-declaration不透明枚举声明[dcl.enum]/3

An enumeration declaration without an enumerator list, such as enum class E;, enum U : int;. Afterwards the enumeration is a complete type; an opaque declaration of an unscoped enumeration must specify an enum-base.

operation state操作状态[exec.async.ops]/3

The state object associated with an asynchronous operation, produced by connect(sender, receiver), which owns the receiver. It must live until the asynchronous operation completes; once a completion operation has executed it is invalidated, and accessing any part of it afterwards is UB.

operator function运算符函数[over.oper.general]/1

A function declared with an operator-function-id (operator followed by an overloadable operator) as its name, or a specialization of an operator function template; it "implements" the operator in its name and is usually invoked implicitly via an operator expression.

optional object可选对象[optional.general]/1

An object that contains storage for another object and manages its lifetime; the contained object may be initialized after it and destroyed before it, and its initialization state is tracked by it.

ordinary character type普通字符类型[basic.fundamental]/7

Collective name for char, signed char, unsigned char.

out-of-thin-air value无中生有的值[atomics.order]/8

A value that circularly depends on its own computation, such as two threads each writing the value they read to the other and getting 42 out of nowhere. The standard requires, in a recommended-practice clause, that implementations not produce such values.

overlap (of mdspan objects)(mdspan 的)重叠[linalg.general]/8

Two mdspans overlap if there exist multidimensional indices for each such that the elements refer to the same object; if they have the same extents and refer to the same element index by index, they alias, which is a special case of overlap. Output parameters in must not overlap other mdspan parameters unless explicitly permitted.

overload patternoverload 模式[variant.visit]

The idiom template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; };: multiply inherit from several lambdas and merge their operator()s into one overload set with a using pack expansion, commonly used as a visitor for std::visit; since C++20 aggregate CTAD makes a deduction guide unnecessary.

overload resolution重载决议[over.pre]/2

The process of selecting, based on the types of the arguments at the point of use, the function declaration to be called from an overload set and determining whether the call is valid. It has three steps: building the candidate functions, filtering the viable functions, and selecting the unique best viable function ([over.match]).

overload set重载集[basic.lookup.general]/1

When the declarations found by name lookup are all functions or function templates, the set is called an overload set and is handed to overload resolution ([over.match]) to choose from.

override (a virtual function)覆盖[class.virtual]/2

A member function G in a derived class whose declaration corresponds to a base class virtual function F (same name, same non-object parameter list, same cv/ref-qualifiers, ignoring requires-clauses) overrides F; access is not considered, and F need not be visible.

owns (a mutex)拥有(互斥量)[thread.mutex.requirements.general]/1

An execution agent owns a mutex from a successful call to one of its locking functions until it calls unlock. Relocking a non-recursive mutex, unlocking a mutex not owned, and terminating a thread while owning one all violate the requirements and are undefined behavior.

pack包[temp.variadic]/5

Collective name for template parameter packs, function parameter packs, init-capture packs, and structured binding packs; a pack name may appear only within a pack expansion.

pack expansion包展开[temp.variadic]/6

A construct consisting of a pattern and an ellipsis; when instantiated, the pattern is instantiated once for each element of the pack, producing a (possibly empty) list; it may appear only in the contexts enumerated by the standard.

padding bits填充位[basic.types.general]/2

Bits that are in the object representation but are not part of the value representation. Padding bits of integer types only form alternative representations of the same value and do not cause traps.

pair-likepair-like[tuple.syn]

Exposition-only concept: satisfies tuple-like and tuple_size_v<remove_cvref_t<T>> == 2. A pair can be constructed and assigned from any pair-like that is not a subrange.

parallel algorithm并行算法[algorithms.parallel.defns]/2

An algorithm function template listed in the standard that has a template parameter named ExecutionPolicy or one constrained by the exposition-only concept execution-policy. Its first function parameter is an execution policy, which determines where and in what order the element access functions are executed.

parallel forward progress guarantee并行前进保证[intro.progress]/8

No progress is guaranteed before the thread executes its first execution step; afterwards it provides the concurrent forward progress guarantee; typical examples are thread pool tasks and execution::par.

parameter mapping参数映射[temp.constr.atomic]/1

The mapping, in an atomic constraint, from the template parameters appearing in the expression to template arguments, composed layer by layer as concept-ids are inlined during normalization.

parameter-type-list形参类型列表[dcl.fct]/5

A component of a function type: the list of parameter types after adjustment (array/function → pointer, top-level cv deleted), plus whether there is an ellipsis or a function parameter pack.

partial ordering (of function templates)(函数模板的)偏序[temp.func.order]/1

When several function templates can all generate viable specializations, the process of determining which is more specialized by transforming the templates with synthesized unique types and deducing in both directions; if deduction succeeds in both directions, constraints decide.

partial specialization部分特化[temp.spec.partial.general]/1

A class template or variable template declaration in which the template name is followed by an argument list containing template parameters; it provides an alternative definition when the arguments of a specialization match it. Each partial specialization is a distinct template.

partitioned with respect to an expression相对表达式划分[alg.sorting.general]/7

The sequence [start, finish) has a split point n such that f(*(start + i)) is true if and only if i < n; i.e. all elements for which the expression is true come first. This is the real precondition of the binary-search family of algorithms.

past-the-end value过尾值[iterator.requirements.general]/7

An iterator value pointing past the last element of a sequence, analogous to a pointer past the end of an array. The library never assumes past-the-end values are dereferenceable.

pending sequence待处理序列[streambuf.virt.get]/7

A concept in the streambuf virtual-function protocol: for underflow, the characters remaining in the get area plus the characters to be read from the external source; for overflow, the characters in the put area not yet handed over, [pbase(), pptr()), plus the argument c (if it is not eof).

perfect forwarding call wrapper完美转发调用包装器[func.require]/4

An argument forwarding call wrapper that also forwards its state entities according to the cv-qualification and value category of the wrapper itself (cv T& for an lvalue call, cv T&& otherwise); a call is expression-equivalent to its call pattern.

permissible completion允许的完成[exec.snd.concepts]/3

A completion operation whose completion signature appears in completion_signatures_of_t. The semantic requirement of sender_in is that, once connected and started, all potentially evaluated completion operations are permissible completions.

permissible type容许类型[over.match.funcs.general]/7

In the contexts where an object or reference is initialized by a conversion function, the set of types to which the conversion function's return type must belong; non-explicit and explicit conversion functions each have their own set.

phase completion step阶段完成步骤[thread.barrier.class]/3

Executed once by one of the participating threads at the end of each barrier phase: it calls the completion function and then unblocks the threads blocked at the phase synchronization point; its end strongly happens before the return of the unblocked calls.

piecewise construction分段构造[pairs.pair]/19

The way of constructing a pair with piecewise_construct as the first argument followed by two tuples: the elements of the two tuples are forwarded to the constructors of first and second respectively, and the element types need not be copyable or movable.

pipeable sender adaptor closure object可管道化发送器适配器闭包对象[exec.adapt.obj]/1

A function object c that accepts a sender and returns a sender, such that c(sndr) is equivalent to sndr | c; two closures can be composed as c | d. Calls like then(f) that "omit the first argument" return such a closure.

placeholder for a deduced class type推导类类型占位符[dcl.type.simple]/3

A deducible template name (or splice) without a template argument list, such as std::pair in std::pair p(1, 2);; it is replaced by the result of overload resolution per [over.match.class.deduct]. It can be used only in initializing declarations of variables (cv T), new, functional casts, and template parameters.

placeholder type deduction占位类型推导[dcl.type.auto.deduct]/1

The process of replacing a type containing a placeholder type with the deduced type. auto follows the rules for template argument deduction from a function call (with = {…} it deduces std::initializer_list<U>); decltype(auto) follows the rules of decltype(E).

placemarker preprocessing token占位记号[cpp.concat]/2

A temporary token internal to phase 4: it replaces a parameter adjacent to ## whose argument is empty, or __VA_OPT__ when the variable arguments are empty; it disappears when concatenated with another token, and all remaining ones are deleted before rescanning.

placement new-expressionplacement new 表达式[expr.new]/19

A new-expression with a new-placement (extra arguments in parentheses), which are passed to the allocation function, such as new (buf) T, new (std::nothrow) T.

plain lock-free atomic operation普通无锁原子操作[support.signal]/2

An operation on atomic_flag, is_lock_free/atomic_is_lock_free, or an atomic operation on a lock-free atomic object; they may be used in signal handlers.

point of definition (of a macro definition)(宏的)定义点[cpp.import]/4.1

The position at which a macro definition takes effect in translation unit T: if the #define is in T itself, that directive; otherwise the point of macro import of the first header unit in T containing its point of definition (except for macros whose names are the same as a keyword, module, or import).

point of instantiation (POI)实例化点[temp.point]/1

The program point at which a specialization is considered instantiated, from which ADL for dependent names proceeds. For function-like specializations it immediately follows the namespace-scope declaration that refers to it (the end of the TU also counts); for class template specializations it immediately precedes it; if multiple POIs give different meanings, the program is IFNDR.

point of macro import宏导入点[cpp.import]/1

The position immediately after the terminating new-line of an import directive that imports a header unit; macros from the header unit are visible in the importer from this point on. An import of a named module or partition has no point of macro import.

point of undefinition取消定义点[cpp.import]/4.2

The first #undef of the macro after the point of definition, or the point of macro import of the first header unit containing its point of undefinition, whichever is earlier.

pointer past the end尾后指针[basic.compound]/3

A pointer value representing the address of the first byte after the storage of an object; it does not point to an unrelated object that happens to be at that address, and cannot be dereferenced.

pointer-interconvertible指针可互转[basic.compound]/7

The same object, a union and its members, a standard-layout class object and its first non-static data member or base class subobject, and the transitive closure thereof; such objects have the same address, and a pointer to one can be obtained from the other via reinterpret_cast.

polymorphic class多态类[class.virtual]/1

A class that declares or inherits a virtual function; downcasting with dynamic_cast and the dynamic behavior of typeid apply only to polymorphic classes.

polymorphic function wrapper多态函数包装器[func.wrap.general]/1

A class template that stores (or refers to), with a fixed type, any callable object satisfying a given call signature: function, move_only_function, copyable_function, function_ref.

pool resource classes池资源类[mem.res.pool.overview]/1

Collective name for synchronized_pool_resource and unsynchronized_pool_resource: pools organized by block size, each replenished by geometrically growing chunks; oversized requests go directly to the upstream resource, and all memory is returned on destruction.

postcondition assertion后置条件断言[dcl.contract.func]/1

A function contract assertion introduced by post(predicate), evaluated after the function returns normally and the result object has been initialized; not evaluated on exit via an exception.

potentially concurrent潜在并发[intro.races]/17

Two actions that are performed by different threads, or that are unsequenced with at least one performed by a signal handler (and they are not both performed by the same signal handler invocation).

potentially conflict潜在冲突[basic.scope.scope]/6

Two declarations correspond but make the name denote different entities. If a name in the same scope is bound to two potentially conflicting declarations, the program is ill-formed (unless the latter is a name-independent declaration).

potentially constructed subobjects潜在构造的子对象[special]/7

The direct non-static data members of a class, its non-virtual direct base classes, and (if the class is not abstract) its virtual base classes. Whether a defaulted special member function is deleted is decided on this basis.

potentially evaluated潜在求值[basic.def.odr]/3

An expression that is not an unevaluated operand (of sizeof, decltype, noexcept, etc.) or a subexpression thereof. An expression inside if (false) is still potentially evaluated.

potentially invoked (destructor)潜在调用(析构函数)[class.dtor]/14

A destructor is invoked, or may be invoked for exception unwinding in a new-expression, return, aggregate initialization, constructor, or throw; a potentially invoked destructor must not be deleted and must be accessible.

potentially non-unique object潜在非唯一对象[intro.object]/9

A string literal object, the backing array of an initializer list, a template parameter object of array type, and their subobjects; two such objects may have the same address.

potentially-constant潜在常量[expr.const.init]/6

A constexpr variable, a variable of reference type, or a non-volatile const variable of integral/enumeration type. It is the type-based threshold for a variable to be usable in constant expressions.

potentially-overlapping subobject潜在重叠子对象[intro.object]/7

A base class subobject, or a non-static data member declared with [[no_unique_address]]; its storage may overlap with other subobjects, and it may have zero size.

potentially-throwing (expression)潜在抛出的(表达式)[except.spec]/6

An expression that calls or implicitly calls a potentially-throwing function, a throw-expression, a dynamic_cast to a reference that requires a runtime check, a typeid applied to a dereferenced polymorphic pointer, or an expression with such an evaluated subexpression. The noexcept operator evaluates on this basis.

potentially-throwing exception specification潜在抛出的异常说明[except.spec]/1

The exception specification predicate is false, i.e. the function may exit via an exception. Ordinary functions without a noexcept-specifier are so by default.

precedes (a program point)先于(程序点)[basic.lookup.general]/2

A declaration X precedes a program point P if P follows X in the same TU; or X inhabits a class scope and is reachable from P; or X comes from an imported TU and is exported (or is in the same module and does not have internal linkage). It is the precise replacement for the old standard's "visible".

precondition assertion前置条件断言[dcl.contract.func]/1

A function contract assertion introduced by pre(predicate), evaluated after parameter initialization and before the function body.

Preconditions (element)Preconditions 要素[structure.specifications]/3.4

An element of a library function specification: conditions the function assumes to hold on every call; violating any precondition is undefined behavior. An implementation may, but need not, check them with contract assertions.

prefix unary operator function前缀一元运算符函数[over.unary]/1

A function named operator@ (where @ is a prefix unary operator): either a non-static member function with no non-object parameters, or a non-member function with exactly one parameter.

preprocessing预处理[cpp.pre]/1

Collective name for the four capabilities an implementation has in translation phase 4: conditionally processing or skipping parts of the source, including other source files, importing macros from header units, and macro replacement. It is called "pre"processing because conceptually it happens before the translation of the resulting translation unit.

preprocessing directive预处理指令[cpp.pre]/2

A sequence of preprocessing tokens that, at the start of phase 4, begins with a directive-introducing token at the start of a line and extends to the first following new-line. The determination is purely lexical; macro expansion can neither create nor eliminate directives.

preprocessing number预处理数字[lex.ppnumber]/1

A preprocessing token that begins with a digit or ". digit" and may continue with identifier characters, ., ', and e/E/p/P followed by a sign. It has no type or value until it is converted to an integer or floating-point literal in phase 6.

preprocessing token预处理记号[lex.pptoken]/1

The minimal lexical unit in phases 3–5: header names, import/module/export placeholder tokens, identifiers, preprocessing numbers, character/string literals, preprocessing operators or punctuators, and other single non-whitespace characters. Converted to tokens in phase 6.

preprocessing translation unit预处理翻译单元[lex.separate]/1

A source file together with all headers and source files recursively included via #include, minus any lines skipped by conditional inclusion directives. See [lex.separate].

primary module interface unit主模块接口单元[module.unit]/2

The module interface unit without a partition name; each named module has exactly one (IFNDR if violated). Interface partitions must be exported by it directly or indirectly.

primary template主模板[temp.decls.general]/2

A template declaration in which the template name is not followed by a template argument list; its template argument list is that of its own template-head. Partial specializations are always relative to the primary template.

private module fragment私有模块片段[module.private.frag]/1

The part after module :private;, which may appear only in a primary interface unit that is the module's only unit; declarations in it are not reachable from other TUs and are not subject to exposure checks.

program point程序点[basic.lookup.general]/2

A position between tokens in a translation unit: at least one before the first token, between each pair of adjacent tokens, and after the last token. Name lookup always proceeds "from some program point".

program-defined specialization程序定义的特化[namespace.std]/2

An explicit specialization or partial specialization that is not part of the standard library and not defined by the implementation. Its instantiations are also program-defined types.

program-defined type程序定义类型[defns.prog.def.type]

(Library) A non-closure class type or enumeration type that is not part of the standard library and not defined by the implementation, the closure type of a lambda in the program, or an instantiation of a program-defined specialization. It determines which templates a program may specialize in std.

projection投影[algorithms.requirements]

The optional callable argument proj (default identity) of std::ranges algorithms: the algorithm first transforms an element with invoke(proj, *i) and then hands it to the predicate or comparator. It can be a member pointer, as in ranges::sort(v, {}, &T::key).

promise objectpromise 对象[dcl.fct.def.coroutine]/5

The object of the promise type constructed in the coroutine's replacement body, stored in the coroutine state; it can be constructed from the parameter copies.

promise typepromise 类型[dcl.fct.def.coroutine]/3

std::coroutine_traits<R, [object-parameter-type,] P...>::promise_type, which must be a class type; the coroutine body is rewritten into calls to its members (initial_suspend, final_suspend, return_value, etc.).

property of the implementation实现的性质[defns.impl.prop]

Behavior, for a well-formed construct and correct data, that depends on the implementation but need not be documented, such as padding in class types.

prospective destructor预期析构函数[class.dtor]/1

A member function declared as ~ClassName; a class can have several (distinguished by constraints), and at the end of the class definition one of them is selected by overload resolution to be the destructor.

protection epoch保护纪元[saferecl.hp.general]/3

The time segments into which a hazard pointer's life from creation to destruction is divided; in each epoch it is either associated with one hazard-protectable object or unassociated. Changing the association begins a new epoch. Epochs that began before retirement defer the reclamation of the object.

prototype parameter原型形参[temp.concept]/7

The first template parameter declared in a concept definition; type-constraints and C auto substitute the constrained type into this position.

provides storage提供存储[intro.object]/3

When a complete object created within an unsigned char[N] or std::byte[N] array lies entirely within the array, the array is said to provide storage for that object; reusing the storage then does not end the lifetime of the array.

proxy reference代理引用[template.bitset.general]/3

A class object returned by operator[] when a real reference cannot be returned (e.g. a single bit is not addressable), which reads the referenced element through a conversion function and writes it through an assignment operator, such as bitset<N>::reference, vector<bool>::reference. auto deduction yields the proxy itself.

prvalue纯右值[basic.lval]/1

An expression whose evaluation initializes an object (its result object) or computes the value of an operand of an operator, or an expression of type cv void. Since C++17 a prvalue is not itself an object.

pseudo-destructor伪析构函数[expr.prim.id.dtor]/1

A destructor name ~T written for a non-class type T (which must be a scalar type); it may appear only in the call form p->~T()/obj.~T(), and since C++20 it ends the lifetime of the object.

pure virtual function纯虚函数[class.abstract]/2

A virtual function declared with = 0; a definition is needed only if it is called with a qualified name (or implicitly called as a destructor).

purview管辖范围[module.unit]/5

The purview of a module unit is the token sequence from the module-declaration to the end of the TU (excluding the global module fragment, including the private module fragment); the purview of a named module is the set of purviews of all its module units.

put areaput 区[streambuf.reqts]/2

The in-memory buffer segment of the output sequence of a basic_streambuf, described by pbase(), pptr() (next write position), and epptr(); while pptr() < epptr(), sputc writes directly to memory, overflow() is called only when it is full, and sync() is responsible for handing [pbase(), pptr()) to the external sequence.

qualification-combined type限定合成类型[conv.qual]/3

The type obtained from two similar types by taking the union of cv-qualifiers at each level (and unknown array bounds), then adding const to every intermediate level outside any level that changed; T1 can be qualification-converted to T2 if and only if their qualification-combined type is T2.

qualified name限定名[basic.lookup.qual.general]/2

A member-qualified name, or the terminal name of a construct such as a qualified-id, using-declarator, or typename-specifier that has a nested-name-specifier.

qualified name lookup限定名字查找[basic.lookup.qual.general]/3

A search of the associated scope of a class, namespace, or enumeration; for namespaces, the inline namespace set is also searched, and if nothing is found the search proceeds transitively through using-directives.

queryable object可查询对象[exec.queryable.general]/1

A read-only collection of key-value pairs whose keys are customization point objects called query objects (such as get_stop_token). A query q(env, args...) is equality-preserving, does not modify its arguments, and is equivalent to env.query(q, args...) (if the latter is well-formed).

random number distribution随机数分布[rand.req.dist]/1

A function object that, called with a URBG as argument, returns values distributed according to some probability density function or discrete probability function; it may have internal state (cleared by reset), and its parameters are bundled as param_type. The algorithms producing each distribution are implementation-defined, so results are not reproducible across implementations.

random number engine随机数引擎[rand.req.eng]/1

A deterministic URBG that additionally meets requirements for seeding, equality comparison, and stream input/output. Its specification gives the size of the state, the transition algorithm TA, and the generation algorithm GA; two engines are equal if and only if the infinite sequences they will produce are the same.

random number engine adaptor随机数引擎适配器[rand.req.adapt]/1

An engine that takes the output of another engine (the base engine) and applies an algorithm to it to obtain different randomness properties, such as discard_block_engine, independent_bits_engine, shuffle_order_engine; its state includes the base engine's state, and base() returns the base engine.

range范围[range.range]/2

A type modeling the std::ranges::range concept: for an lvalue of it, ranges::begin yields an iterator and ranges::end yields a sentinel that forms a sentinel_for with it, both in amortized O(1) without modifying the range; when the iterator is a forward iterator, begin must also be equality-preserving.

range adaptor范围适配器[range.adaptors.general]/1

A facility that transforms a range into a view with custom behavior (such as views::filter, views::transform), declared in std::ranges::views, which can be chained with | into lazily evaluated pipelines.

range adaptor closure object范围适配器闭包对象[range.adaptor.object]/1

A unary function object C accepting one range argument such that C(R) is equivalent to R | C; two closure objects compose as C | D into a new closure whose call pattern is d(c(arg)). Since C++23 user types can become closure objects via the CRTP base class range_adaptor_closure.

range adaptor object范围适配器对象[range.adaptor.object]/6

A customization point object that accepts a viewable_range as its first argument and returns a view; when it takes only one argument it is itself a closure object, and with multiple arguments, calling it with the arguments other than the range produces a closure object that binds those arguments by value (partial application).

range factory范围工厂[range.factories.general]/1

A facility that creates a view directly without taking an underlying range, such as views::empty, views::single, views::iota, views::repeat, views::istream; they are the sources of pipelines.

ranges::dangling悬垂占位类型[range.dangling]/1

An empty class constructible from any arguments and supporting no operations; ranges algorithms that return iterators or subranges return it instead when the argument is a non-borrowed rvalue range, making the use of dangling iterators a compile error.

rank (of a conversion)(转换的)等级[over.ics.scs]/3

The three ranks of standard conversions: Exact Match, Promotion, Conversion. The rank of a standard conversion sequence is the worst rank among its conversions and reference binding.

raw literal operator原始字面量运算符[over.literal]/4

A literal operator with a single const char* parameter; it receives the uninterpreted spelling of an integer or floating-point literal.

raw string literal原始字符串字面量[lex.string]/2

A string literal with R in its prefix, such as R"d(...)d": it contains no escape sequences or UCNs, line splicing is reverted, and the delimiter is at most 16 characters.

reachable可达[iterator.requirements.general]/10

If a finite number of applications of ++i to an iterator i makes i == s, the sentinel s is said to be reachable from i; then [i, s) is a valid range.

reachable (declaration)可达(声明)[module.reach]/3

The semantic properties of a declaration (definition, completeness, default arguments, etc.) take effect at a point. A declaration is reachable from P if it precedes P in the same TU, or is in a reachable TU, is not discarded, and is not in a private module fragment. Unrelated to whether it is exported.

reachable through可经由指针到达[basic.compound]/8

Through a pointer to x one can reach the bytes occupied by objects pointer-interconvertible with x (if it is an array element, the entire enclosing array); this delimits the preconditions of std::launder.

ready (match_results)就绪(match_results)[re.results.general]/3

The state of a match_results after it has been modified by a completed regular expression match and its result state is fully established; a default-constructed object is not ready, and calling most member functions on it is undefined behavior.

receiver接收器[exec.async.ops]/5

An aggregation of three completion handlers (value, error, stopped) representing the continuation of an asynchronous operation; it has an environment and is owned by the operation state. Its type must derive receiver_concept, be nothrow movable, and must not be a final class.

redeclaration重声明[basic.def]/1

A declaration of an entity X is a redeclaration if another declaration of X is reachable from it; otherwise it is the first declaration.

reference collapsing引用折叠[dcl.ref]/7

The rule for forming a "reference to reference" via a typedef, template parameter, or decltype: if either is & the result is an lvalue reference; only && && yields an rvalue reference; cv-qualifiers are ignored.

reference member bound to a temporary绑定临时量的引用成员[pairs.pair]/13

A reference element of a wrapper type is bound to a temporary during construction and dangles as soon as construction ends. Since C++23, constructors of pair/tuple that would create such a binding are defined as deleted, the criterion being reference_constructs_from_temporary_v.

reference-compatible引用兼容[dcl.init.ref]/4

"cv1 T1" is reference-compatible with "cv2 T2" if "pointer to cv2 T2" can be converted to "pointer to cv1 T1" via a standard conversion sequence. It is a prerequisite for a reference to bind directly.

referenceable type可引用类型[defns.referenceable]

An object type, a function type without cv-qualifiers or a ref-qualifier, or a reference type; i.e. a type to which a reference can be formed. void and int() const are not.

referenced type被引用类型[dcl.struct.bind]/6

The type of the object a structured binding refers to, which is also the result of applying unparenthesized decltype to it: the element type for the array protocol, tuple_element<i, E>::type for the tuple protocol, and for the data member protocol the declared type of the member (for reference members) or the type of e.m.

reflection反射[basic.fundamental]/17

A value of type std::meta::info (C++26); apart from the null reflection, each reflection represents a construct such as a value, object, variable, type, or namespace.

reflection operator反射运算符[expr.reflect]/1

C++26's unary ^^ operator, whose result is a prvalue of type std::meta::info representing the construct its operand designates: a namespace, type, template, variable, function, etc.

region of RCU protectionRCU 保护区域[saferecl.rcu.general]/4

The region (read-side critical section) from a lock on an rcu_domain to the corresponding unlock. If a retire does not strongly happen before the start of the region, the end of the region strongly happens before the scheduled deletion.

registered character encoding注册字符编码[text.encoding.general]/1

A character encoding scheme in the IANA Character Sets registry; std::text_encoding::id provides an enumerator for every registered encoding except NATS-DANO and NATS-DANO-ADD, whose value is the IANA MIB number.

rehash重新散列(rehash)[unord.req.general]/9

An unordered container changes its number of buckets and redistributes the elements among the buckets; this invalidates all iterators and changes the order of elements, but does not invalidate pointers and references. It is guaranteed not to occur on insertion when (N+n) <= z*B.

reified object物化对象[range.access.general]/2

The object corresponding to a subexpression E in [range.access]: if E is a glvalue, the object it refers to; otherwise the result of applying the temporary materialization conversion to E. All range access CPOs call begin()/size() etc. on an lvalue designating it.

reinit-expectedreinit-expected[expected.object.assign]/1

An exposition-only function template: replaces the old object with a new one in expected's union storage, providing the strong exception guarantee through three branches: nothrow construction / nothrow move / backup and roll back.

release sequencerelease 序列[intro.races]/5

A maximal contiguous subsequence of an atomic object's modification order headed by a release operation and followed only by atomic read-modify-write operations. An acquire that reads any value in it synchronizes with that release.

remote time zone database远程时区数据库[time.zone.db.remote]/1

An updated time zone database that the implementation may obtain while the program is running. It does not affect the program automatically: only when reload_tzdb() is called is it pushed to the front of the tzdb_list, and remote_version() can query its version.

replaceable function可替换函数[dcl.fct.def.replace]/1

A function whose definition is provided by the implementation and which a program can supplant with a replacement function of the same signature (e.g. global operator new); replacement takes effect before program startup, and a replacement function cannot be inline.

replacement field替换字段[format.string.general]/1

A part of a format string of the form { arg-id(opt) format-specifier(opt) }, which is replaced by the formatted result of the corresponding argument.

replacement function替换函数[defns.replacement]

(Library) A non-reserved function whose definition is provided by a C++ program, such as global operator new; the program-provided definition must meet the required behavior, otherwise the behavior is undefined.

required behavior要求的行为[structure.specifications]

Semantic requirements in the library clauses on replaceable functions and handler functions (such as operator new, new_handler, terminate_handler), which are equally binding on replacement versions provided by the program; violating them is undefined behavior.

requires-expressionrequires 表达式[expr.prim.req.general]/2

requires (parameters) { requirements... }, a bool prvalue; substitution failure in the immediate context makes it false rather than an error.

reserved function保留函数[defns.reserved.function]

(Library) A function, part of the standard library, defined by the implementation; if the program provides a definition for it, the results are undefined.

reserved identifier保留标识符[lex.name]/4

An identifier reserved to the implementation when it appears as a token: those containing __ or beginning with _ followed by an uppercase letter are reserved everywhere; those beginning with _ are reserved in the global namespace. Using them is IFNDR.

resource-count资源计数[cpp.embed.gen]/9

The number of elements #embed actually produces: with limit, max(min(limit, resource size in bytes − offset), 0); otherwise max(resource size in bytes − offset, 0). If it is 0, the resource is empty.

result binding结果绑定[dcl.contract.res]/1

The name introduced in a postcondition post(r: …), denoting the object or reference returned by the function itself; as an expression it is a const lvalue.

result object结果对象[basic.lval]/5

The object initialized by a prvalue, provided by the context in which the prvalue appears (a variable, return value, parameter, or materialized temporary). A prvalue of cv void has no result object.

resumer恢复者[dcl.fct.def.coroutine]/8

The evaluation that calls the resumption member function (resume()) of a coroutine handle to continue execution of a suspended coroutine; control returns to it when the coroutine suspends again.

rethrow重新抛出[expr.throw]/3

throw; with no operand: reactivates the currently handled exception with the existing exception object, creating no new object and not slicing; if no exception is being handled, std::terminate is called.

reversible container可逆容器[container.rev.reqmts]/1

A container whose iterators are of the bidirectional or random-access category and that provides reverse_iterator and rbegin/rend/crbegin/crend. forward_list and the unordered containers are not reversible containers.

rewrite target改写目标[over.match.oper]/4

An operator== that can be used for != rewriting or parameter reversal; if a corresponding operator!= can be found by searching the relevant scope, it is not a rewrite target (C++23's P2468).

rewritten candidate改写候选[over.match.oper]/3

Since C++20, the fourth kind of candidate for operator expressions: relational operators can be rewritten in terms of operator<=>, != in terms of operator==, and == and <=> also have synthesized candidates with reversed parameters. In a tie they lose to non-rewritten candidates.

runtime-undefined behavior运行时未定义行为[defns.undefined.runtime]

Behavior that is undefined except during constant evaluation; during constant evaluation, whether it makes the expression non-constant is implementation-defined. Used for the case of a [[assume]] assumption that does not hold.

rvalue右值[basic.lval]/1

A prvalue or an xvalue; an expression that can bind to an rvalue reference.

rvalue reference右值引用[dcl.ref]/2

A reference type declared with &&, which can bind only to rvalues (and function lvalues); a named rvalue reference variable is itself an lvalue.

satisfaction (of a constraint)约束满足[temp.constr.atomic]/3

Whether a constraint holds for given template arguments: conjunctions/disjunctions short-circuit from left to right; an atomic constraint is not satisfied if substitution fails in the immediate context, and is otherwise evaluated as a bool constant expression.

saturation arithmetic饱和算术[numeric.sat.func]/1

The mathematical result of the integer operation is computed as if with infinite precision; if it is not representable in the result type, the result is whichever of that type's maximum and minimum values is closer to the mathematical result, instead of wrapping around or being UB. C++26's saturating_add and friends provide these semantics.

scalar type标量类型[basic.types.general]/7

Arithmetic types, enumeration types, pointer types, pointer-to-member types, std::meta::info, std::nullptr_t, and cv-qualified versions of these.

schedule sender调度发送器[exec.async.ops]/10

The result of a schedule expression. Its asynchronous operation, on success, executes a value completion with no datums on an execution agent of the scheduler's associated execution resource, and its value completion scheduler attribute equals the scheduler that produced it.

scheduler调度器[exec.async.ops]/10

A lightweight handle to an execution resource providing a uniform schedule interface; schedule(sch) returns a schedule sender whose operation completes with an empty value on an execution agent of that resource. It is copyable and equality-comparable, and equality means the same execution resource.

scope作用域[basic.scope.scope]/1

Since C++23, a region of the program (possibly discontiguous) introduced by a declaration, parameter list, statement, handler, lambda, or contract assertion; scopes form a tree rooted at the global scope.

scope association作用域关联[exec.scope.concepts]/1

A move-only RAII object satisfying scope_association: when engaged it owns one association with some async scope and releases it on destruction (decrementing the scope's count). Default-constructed and moved-from objects are not engaged.

scope token作用域令牌[exec.scope.concepts]/3

A copyable handle satisfying scope_token: try_associate() attempts to obtain an association with its associated scope (returning a scope_association object; engaged means success), and wrap(sndr) wraps a sender without changing its completion signatures.

scoped enumeration有作用域枚举[dcl.enum]/2

An enumeration declared with enum class or enum struct: its enumerators are only in the enumeration's scope, they do not implicitly convert to integers, and the underlying type is fixed as int by default.

search搜索(作用域中的)[class.member.lookup]/1

For a non-class scope, simply a single search; for a class scope, if nothing is found in the class itself, the results of each direct non-dependent base class are recursively merged according to the lookup set algorithm.

secondary comparison operator次级比较运算符[class.compare.secondary]/1

The relational operators < > <= >= and !=. Their defaulted versions return x @ y obtained via the rewritten candidates (<=> or ==).

seed sequence种子序列[rand.req.seedseq]/1

An object that consumes a sequence of integer data and, on request, produces any number of unsigned integers in [0, 2^32), used to supply initial state to random number engines; its generate may depend on the history of previous calls. std::seed_seq is the seed sequence provided by the standard.

selected destructor选中的析构函数[class.dtor]/4

The one chosen at the end of the class definition by overload resolution among the prospective destructors with an empty argument list, i.e. the class's destructor; it may be deleted.

sender发送器[exec.async.ops]/9

A factory for one or more asynchronous operations: connecting it with a receiver yields an operation state, which, once started, "sends" the results to the receiver via completion functions. A sender itself only describes work and does not perform it; it has a queryable object called its attributes.

sender adaptor发送器适配器[exec.async.ops]/14

A sender algorithm that constructs and returns a parent sender from one or more child senders (and other arguments), such as then, let_value, when_all. The parent sender's asynchronous operation is the parent operation of the operations created by the child senders. The other two kinds of sender algorithms are sender factories (such as just) and sender consumers (such as sync_wait).

sentry哨兵对象(sentry)[istream.sentry]/1

basic_istream::sentry / basic_ostream::sentry: a local object constructed at the start of every formatted and unformatted I/O function, responsible for the preparatory work (checking good(), flushing the output stream associated by tie(), skipping whitespace on input); its bool value indicates whether to proceed. The ostream sentry flushes on destruction under unitbuf.

separately instantiated construct分别实例化的结构[temp.decls.general]/3

The default arguments, noexcept-specifiers, and function contract specifiers of a templated function. For purposes of name lookup and instantiation, they (as well as type-constraints and requires-clauses) are each separate definitions, instantiated on demand.

sequence container序列容器[sequence.reqmts]/1

A container that organizes a finite number of objects of the same type into a strictly linear arrangement, with positions determined by how they were inserted; the basic ones are vector, inplace_vector, forward_list, list, deque, while array and hive provide only limited sequence operations.

sequenced before先序于[intro.execution]/8

An asymmetric, transitive, partial relation between evaluations within a single thread; if A is sequenced before B, A must be executed before B. Full-expressions separated by semicolons, the left operands of && || ,, etc. all establish this relation.

set of potential results潜在结果集[basic.def.odr]/3

The set of id-expressions/splice-expressions obtained by recursing through parentheses, array subscripts, non-static member access, .*, glvalue conditional expressions, and the right operand of a comma; used to determine whether a variable is only read for its value.

SFINAE (Substitution Failure Is Not An Error)代入失败不是错误[temp.deduct.general]/8

Non-standard term: when substitution of template arguments produces an invalid type or expression in the immediate context, deduction fails and the function template is silently removed from the candidate set, rather than making the program ill-formed.

shared state共享状态[futures.state]/1

The state used by future, promise, packaged_task, and async to communicate a result: it contains state information and a (possibly not yet evaluated) result — a value or an exception. It is ready only when it holds a retrievable result.

short string optimization (SSO)短字符串优化[string.require]/4

The implementation technique of storing short character sequences directly inside the basic_string object without heap allocation. The standard does not require it but permits it, which is also why move assignment and swap of basic_string may invalidate iterators; in libc++ std::string is 24 bytes and can store 22 chars in the object.

short-circuit evaluation短路求值[expr.log.and]/1

Built-in && does not evaluate its right operand when the left operand is false, nor || when it is true, and the left operand is sequenced before the right one. Overloaded &&/|| lose short-circuiting (but since C++17 keep the ordering).

shortest round-trip representation最短往返表示[charconv.to.chars]/2

The representation output by floating-point to_chars without precision that has the fewest characters and that from_chars on the same implementation can read back exactly to the original value; if there are several candidates, the one with the smallest difference from the original value is chosen, with remaining ties resolved by round-to-nearest.

side effect副作用[intro.execution]/7

A change in the state of the execution or translation environment: reading a volatile glvalue, modifying an object, producing an injected declaration, calling a library I/O function, or calling a function that does any of these.

signal-safe信号安全[support.signal]/3

An evaluation that may be performed in a signal handler: it calls no standard library functions other than plain lock-free atomic operations and functions explicitly marked as signal-safe, accesses no objects with thread storage duration, does not use dynamic_cast, throw exceptions, or enter a try block, and does not trigger or wait for the dynamic initialization of static variables. A signal handler containing an evaluation that is not signal-safe is UB.

signature签名[defns.signature]

The information used to identify a function (or function template, specialization, etc.), which is the basis of name mangling and linkage. The signature of an ordinary function is its name, parameter-type-list, and enclosing namespace, excluding the return type; the signature of a function template includes the return type and the template-head.

signed integer type有符号整数类型[basic.fundamental]/1

The five standard signed integer types (signed char, short, int, long, long long) and the implementation-defined extended signed integer types; char is not included.

significand有效数字[lex.fcon]/2

The digit part of a floating-point literal before the exponent (including the decimal point), interpreted in decimal or hexadecimal as a real number s; the scaled value of the literal is s×10^e or s×2^e.

similar types相似类型[conv.qual]/2

Two types are similar if they are the same after erasing the cv-qualifiers at every level (and allowing array bounds to differ between known and unknown). E.g. int** and const int* const*.

simple call wrapper简单调用包装器[func.require]/6

A perfect forwarding call wrapper that meets Cpp17CopyConstructible and Cpp17CopyAssignable and whose copy/move constructors and assignments are all non-throwing constexpr functions, such as the return value of mem_fn.

simple-view简单视图[range.utility.helpers]/1

Exposition-only concept: view V and const V have the same iterator type and the same sentinel type. Adaptors pair begin() requires (!simple-view<V>) with begin() const, so that only the const implementation remains when the underlying view is simple.

single-object delete expression单对象 delete 表达式[expr.delete]/1

A delete-expression of the form delete p; the operand must be a null pointer, the result of a non-array new, or a pointer to a base class subobject thereof, otherwise UB.

singular value奇异值[iterator.requirements.general]/7

An iterator value not associated with any sequence (such as a default-initialized pointer or iterator). The results of almost all expressions on it are undefined; only destruction, assignment of a non-singular value, and (when value-initialized) use as the source of a copy/move are allowed.

sized range有大小范围[range.sized]/2

A range whose number of elements can be computed by ranges::size in amortized O(1), with a result equal to ranges::distance(begin, end); a type can opt out by specializing disable_sized_range.

small-object optimization (SBO/SOO)小对象优化[func.wrap.move.class]/2

The implementation technique of storing sufficiently small target objects directly in a buffer inside the wrapper to avoid heap allocation. For owning function wrappers, the standard lists it only as recommended practice, and notes that it can be used only for types that are nothrow move constructible.

sorted with respect to comp and proj相对 comp 与 proj 有序[alg.sorting.general]/5

For every position i in the sequence and every later position i + n, invoke(comp, invoke(proj, *(i + n)), invoke(proj, *i)) is false — that is, there are no inversions; equivalent elements may sit next to each other.

sorted_unique / sorted_equivalent有序标签[flat.map.overview]/10

The tag types sorted_unique_t, sorted_equivalent_t and their constants std::sorted_unique, std::sorted_equivalent. Passing one to a flat container's constructor or insert promises the library that the data is already sorted by key_comp() (the former also requires no equal elements), so sorting is skipped; if the promise does not hold, the behavior is undefined.

special member function特殊成员函数[special]/1

Default constructors, copy/move constructors, copy/move assignment operators, and prospective destructors; when the program does not declare them, they may be implicitly declared and are implicitly defined when needed.

specialization特化[temp.spec.general]/4

A class, variable, function, or class member instantiated from a templated entity, or an explicit specialization thereof. std::vector<int> is a specialization of std::vector regardless of where its definition comes from.

splice-specifier拼接说明符[basic.splice]/1

C++26's [: r :], where r is a constant expression of type std::meta::info; it designates the underlying entity of the entity represented by r, or (if it is not an entity) that construct itself.

spurious wakeup虚假唤醒[thread.condition.condvar]/8

A waiting function unblocking and returning without having been notified. The wait of condition variables and atomic wait both explicitly permit it, so a wait on a condition variable must be written in a loop that checks the condition (or use the overload with a predicate).

stable algorithm稳定算法[defns.stable]

(Library) An algorithm that preserves, as appropriate to the particular algorithm, the order of elements; e.g. stable_sort preserves the relative order of equivalent elements.

stack unwinding栈回溯[except.ctor]/1

The process, while control passes from the throw point to a handler, of destroying the automatic objects constructed since the try block was entered, in the reverse order of the completion of their construction.

stacktrace entry栈踪迹条目[stacktrace.general]/3

An element of a stacktrace representing one evaluation, represented by std::stacktrace_entry: a lightweight handle that may be empty, which can be queried for a description, source file, and line number, returning an empty string or 0 when the information is unavailable.

standard conversion sequence标准转换序列[conv.general]/1

A sequence of standard conversions in a fixed order: at most one lvalue transformation (lvalue-to-rvalue/array-to-pointer/function-to-pointer), at most one promotion or conversion, at most one function pointer conversion, and at most one qualification conversion.

standard-layout class标准布局类[class.prop]/2

A class with no virtual functions/virtual base classes, no reference members, the same access control for all data members, all of them concentrated in one class of the inheritance hierarchy, at most one base class subobject of any given type, and no base class conflicting with M(S); its first non-bit-field member has the same address as the object.

standard-layout struct标准布局 struct[class.prop]/4

A standard-layout class defined with struct or class; common initial sequences and layout-compatible classes are defined in terms of it. One defined with union is called a standard-layout union.

standard-layout type标准布局类型[basic.types.general]/7

Scalar types, standard-layout class types, arrays of such types, and cv-qualified versions of these; their layout is C-compatible, and pointers to the first member and to the object are interconvertible.

state entities状态实体[func.def]/8

Collective name for the target object and bound argument entities of a call wrapper; copying/moving the wrapper is done state entity by state entity.

static extent静态 extent[mdspan.extents.overview]/3

A template argument of extents (or the Extent of span) that is not equal to dynamic_extent: the length of that dimension is fixed at compile time and occupies no storage in the object.

static initialization静态初始化[basic.start.static]/2

Collective name for zero-initialization and constant initialization of variables with static/thread storage duration; it strongly happens before any dynamic initialization, is in practice performed by the loader, and has no ordering problems.

static initialization order fiasco静态初始化顺序问题[basic.start.dynamic]/3

The initialization order of ordered-initialized global variables in different TUs is indeterminate, so when the initialization of one uses another it may read an object that has not been constructed. Remedies: constinit, function-local statics, the nifty counter, modules.

static storage duration静态存储期[basic.stc.static]/1

The storage duration of namespace-scope variables and of variables first declared with static/extern (not thread_local), lasting for the duration of the program.

static type静态类型[defns.static.type]

The type of an expression obtained by analyzing the program without considering execution semantics; it does not change during execution.

static_assert-declaration fails静态断言失败[dcl.pre]/13

The condition of a static_assert, contextually converted to bool, is false, and it is not in the context of a template definition; the program is then ill-formed. Since C++26 the message can be a computed string.

std-format-spec标准格式说明[format.string.std]/1

The format specification syntax the standard library provides for arithmetic, character, string, and pointer types: [[fill]align][sign][#][0][width][.precision][L][type].

std::swap two-stepstd::swap 两步法[swappable.requirements]

The idiom for swapping values in generic code: first using std::swap;, then an unqualified call swap(a, b), letting ADL find the type's own swap and falling back to std::swap if none is found. C++20's std::ranges::swap CPO packages it into a single call.

stop request停止请求[thread.stoptoken.intro]/1

An asynchronous request, made through a stop source, that an operation stop executing as soon as possible; it is visible to all associated tokens, cannot be withdrawn once made, and subsequent stop requests have no effect. The first stop request synchronously executes the registered callbacks.

stop state停止状态[thread.stoptoken.intro]/2

The state jointly referred to by stop_source, stop_token, and stop_callback: it records whether a stop request has been made and maintains the list of registered callbacks. The stop_* family shares ownership of it; inplace_stop_source owns it exclusively.

storage duration存储期[basic.stc.general]/1

A property of an object that defines the minimum potential lifetime of the storage containing it: static, thread, automatic, or dynamic, determined by the construct used to create the object.

stream buffer流缓冲区(streambuf)[streambuf.general]/1

An object derived from basic_streambuf that controls an input character sequence and an output character sequence and is responsible for the actual transfer to and from the external representation (a file, a string, a memory block, etc.). The iostream stream objects themselves do no I/O; they only read and write characters through the stream buffer pointed to by rdbuf().

strict weak ordering严格弱序[concept.strictweakorder]/2

A relation that is irreflexive (!comp(x, x)) and for which both comp and equiv(a, b) = !comp(a, b) && !comp(b, a) are transitive; equiv is therefore an equivalence relation, and comp induces a strict total ordering on the equivalence classes. Comparators for algorithms such as sort must satisfy it.

string literal object字符串字面量对象[lex.string]/9

The object with static storage duration obtained by evaluating a string literal; it is a potentially non-unique object, whether multiple evaluations yield the same object is unspecified, and modifying it is UB.

string literal operator template字符串字面量运算符模板[over.literal]/5

A literal operator template whose template parameter list has a single constant template parameter of class type (C++20); the string literal itself is the template argument for that parameter.

stringizing argument字符串化实参[cpp.stringize]/2

The argument token sequence corresponding to the operand of the # operator with placemarkers removed; whitespace within it is normalized to single spaces before being spliced into the string literal.

strongly happens before强发生于…之前[intro.races]/8

The part of happens before that the seq_cst total order S can respect: a synchronization edge counts directly only when both ends are seq_cst operations. Also used to describe the order of initialization and destruction.

structural type结构化类型[temp.param]/12

A type usable as the type of a constant template parameter: a scalar type, an lvalue reference type, or a literal class type all of whose base classes and non-static data members are public, non-mutable, and recursively of structural type (or arrays thereof).

structured binding结构化绑定[dcl.struct.bind]/1

An sb-identifier without an ellipsis in a structured binding declaration, or an element of a structured binding pack. It is a name referring to some part of the hidden variable e, and is a kind of entity distinct from variables: decltype gives the referenced type, and it is not implicitly moved on return.

structured binding declaration结构化绑定声明[dcl.pre]/7

A simple-declaration or condition with a structured-binding-declaration, such as auto [a, b] = e;. The specifiers can only be constexpr, constinit, static, thread_local, auto, and cv-qualifiers, and it contains at most one pack.

structured binding pack结构化绑定包[dcl.struct.bind]/1

An sb-identifier with an ellipsis (such as rest in auto [x, ...rest] = t;), introducing zero or more structured bindings; a declaration containing one must be a templated entity. Introduced in C++26.

structured binding size结构化绑定大小[dcl.struct.bind]/2

The number of structured bindings that a type E needs to introduce: the number of elements for an array, std::tuple_size<E>::value for a tuple-like type, and otherwise the number of non-static data members.

subobject子对象[intro.object]/2

An object contained within another object: a member subobject, a base class subobject, or an array element. An object placed into a byte array by placement new is not a subobject.

subobject set子对象集[class.member.lookup]/2

Part of a lookup set: the (base class) subobjects in which the declarations were found; used during merging to determine dominance.

subscript expression下标表达式[expr.sub]/1

A postfix expression followed by square brackets enclosing a possibly empty, comma-separated argument list (multiple arguments since C++23). The built-in E1[E2] is by definition identical to *((E1)+(E2)); the expression before the brackets is sequenced before the arguments inside them.

substatement子语句[stmt.pre]/2

A statement directly contained in a statement: the statement after a label, the statements in a compound statement, the branches or loop body of a selection/iteration statement, the compound statement of an expansion statement; excluding the init-statement and lambda bodies. See [stmt.pre]/2.

substitutability可替换性(比较)[cmp.categories.pre]/4

If, whenever a == b, every function f that reads only comparison-salient state accessible through public const members has f(a) == f(b), then equality is said to imply substitutability. strong_ordering requires substitutability; weak_ordering does not.

subsumes包含[temp.constr.order]/1

Constraint P subsumes Q: every clause of the disjunctive normal form of P shares at least one identical atomic constraint (or comparable fold expanded constraint) with every clause of the conjunctive normal form of Q. I.e. implication judged only by structure and atomic identity.

suitable created object合适的已创建对象[intro.object]/14

After objects are implicitly created, the object pointed to by the pointer returned by certain operations (such as operator new, malloc): a created object whose address is the start of the region and that gives the program defined behavior.

sum type和类型[variant.general]/1

A type whose value is one of several types and that records which one it currently is (also called a tagged union). The standard implementation in C++ is std::variant.

surrogate call function代理调用函数[over.call.object]/2

When function call syntax is used on a class object, a candidate R call-function(F, P1, …, Pn) invented for each non-explicit conversion function to a pointer/reference to function; the object argument must match its first parameter via a user-defined conversion.

suspend point挂起点[expr.await]/5

The point after a coroutine suspends in a co_await and before control returns to its caller or resumer; no scope is exited when control returns.

suspension context挂起语境[expr.await]/2

The context within a function in which co_await may appear: a potentially-evaluated position within a function body or lambda body that is not in a handler, a default argument, the initializer of a static/thread-local variable, or a contract predicate. See [expr.await].

swappable with可与……交换[swappable.requirements]/2

t is swappable with u: in a context where both the swap templates in and the results of ADL are considered, swap(t, u) and swap(u, t) are both valid and actually exchange the values of the two.

synchronized standard iostream object与 stdio 同步的标准流[ios.members.static]/3

cin/cout/cerr/clog and their wide-character versions in the sync_with_stdio(true) state (the default): each character read or write on them has the same effect as fgetc/fputc/ungetc on the corresponding C stream, they can be freely interleaved with printf etc., and concurrent calls to their formatted/unformatted I/O functions do not constitute data races.

synchronizes with同步于[intro.races]/6

A cross-thread ordering edge established between library operations, such as a release store and an acquire load that reads its value (or a value in its release sequence), or a mutex unlock and a subsequent lock.

synth-three-way合成三路比较(库)[expos.only.entity]

An exposition-only library function object: if t < u and u < t satisfy boolean-testable while t <=> u is not usable, it synthesizes a weak_ordering from <; otherwise it uses <=> directly. The <=> of pair, tuple, and containers use it to stay compatible with old types that only have <.

synthesized three-way comparison合成三路比较[class.spaceship]/1

The synthesized three-way comparison for type R: if a <=> b is usable and can be static_cast to R, use it; otherwise, if a <=> b has a viable candidate, it is not defined; otherwise the value of R is synthesized from == and < (plus b < a for partial_ordering).

target constructor目标构造函数[class.base.init]/6

The constructor selected by overload resolution to which a delegating constructor delegates initialization. Delegating to itself, directly or indirectly, is IFNDR.

target object目标对象[func.def]/5

The callable object held by a call wrapper, or an object representing a callable object (such as the pointer in a reference_wrapper).

target scope目标作用域[basic.scope.scope]/2

The scope a declaration "targets", by default the scope it inhabits; block-scope extern/function declarations, friend declarations, declarations with qualified names, etc. are exceptions that target a larger scope. An entity belongs to the target scope of its declarations.

template instantiation模板实例化[temp.spec.general]/1

The act of substituting template arguments into a template (or a member definition of a class template, or a member template) to generate a concrete function, variable, class, or member definition. It can be implicit instantiation or explicit instantiation.

template parameter object模板形参对象[temp.param]/13

An object with static storage duration and const type designated by a constant template parameter of class type; there is exactly one such object for each set of template-argument-equivalent values.

template parameter pack模板形参包[temp.variadic]/1

A template parameter that accepts zero or more template arguments, such as class... Ts.

template template parameter模板模板形参[temp.param]/3

Collective name for type template template parameters, variable template template parameters (C++26), and concept template parameters (C++26): their arguments are templates.

template-argument-equivalent模板实参等价[temp.type]/2

The relation under which two constant template argument values are considered the same: they have the same type and compare item by item according to that type — integers by value, floating-point by being identical, pointers by pointer value, class types recursively subobject by subobject — independent of operator==.

templated entity模板化实体[temp.pre]/8

A template itself, an entity defined or created in a templated entity, a member of a templated entity and its enumerators, the closure type of a lambda in the declaration of a templated entity, and an entity defined in an expansion statement. It is the scope of applicability of rules such as trailing requires-clauses and discarded statements. See [temp.pre]/8.

temporary materialization conversion临时量实质化转换[conv.rval]/1

The standard conversion of a prvalue of type T to an xvalue: the prvalue is evaluated with a newly created temporary object as its result object. Requires T to be complete, and for class types requires the destructor to be usable.

temporary object临时对象[class.temporary]/1

An object created when a prvalue is materialized (temporary materialization conversion), or when the implementation passes/returns a trivially copyable object in registers; usually destroyed at the end of the full-expression.

tentative definition暂定定义[diff.basic]/1

A C concept: a file-scope object declaration without an initializer and without extern (or with static); it may appear multiple times in the same translation unit and the occurrences are ultimately merged into one definition. C++ has no such concept: each such declaration is a definition. See [diff.iso].

terminal name终端名字[expr.prim.id.unqual]/2

The lexically last of the component names of a construct; e.g. the terminal name of N::C<int>::f is f.

terminate_handler终止处理函数[terminate.handler]

The handler function called by std::terminate; it must terminate the program and not return. The default version calls abort; it is replaced with set_terminate.

thread of execution执行线程[intro.multithread.general]/1

A single flow of control within a program, starting with the initial invocation of a specific top-level function and recursively including every function invocation subsequently executed.

thread storage duration线程存储期[basic.stc.thread]/1

The storage duration of thread_local variables; there is one distinct object per thread, lasting until that thread ends.

throw-expression抛出表达式[expr.throw]/1

throw e or throw, of type void. With an operand, it copy-initializes the exception object from the operand (with the static type after decay and removal of top-level cv); without an operand, it rethrows the currently handled exception, or calls std::terminate if there is none.

thunk-ptrthunk 指针[func.wrap.ref.class]/1

An exposition-only member of function_ref: a function pointer of type R(*)(BoundEntityType, Args&&...) noexcept(noex), pointing to a small function instantiated at construction for the specific target, responsible for recovering the target from bound-entity and invoking it.

tick period计次周期[time.duration.general]/1

The length of time between two adjacent "counting units" of a duration, in seconds, represented by a compile-time rational ratio. The tick period of duration is 1/1000 second; count() returns the number of ticks, not the number of seconds.

tied stream绑定(tie)的输出流[basic.ios.members]/1

The output stream pointer returned by basic_ios::tie(). Before this stream does any input or output, the sentry first flushes the tied stream; the standard specifies that cin and cerr are initially tied to cout, so a prompt always appears before waiting for input.

toggle切换(翻转)[template.bitset.general]/2

Changing the value of a bit from 0 to 1 or from 1 to 0; bitset::flip and ^= are specified in terms of it.

top-level cv-qualifiers顶层 cv 限定符[basic.type.qualifier]/6

The qualifiers denoted by cv in a type cv T, i.e. qualifiers applying to the type itself rather than to its components. const int& has no top-level cv; the top-level cv of int* const is const.

trailing requires-clause尾置 requires 子句[dcl.decl.general]/5

A requires clause appearing after a declarator; it can only be used for templated functions and follows the trailing return type; it is not part of the function type, but affects the correspondence of declarations and overload resolution.

transient allocation瞬时分配[expr.const.core]/2.20

Storage obtained during constant evaluation through a replaceable global allocation function or std::allocator and deallocated within the same evaluation. Allowed since C++20; if it is not deallocated (escapes to run time), the expression is not a core constant expression.

transition algorithm转移算法[rand.req.eng]/3

The algorithm TA by which a random number engine advances its state e_i to the successor state e_{i+1}; together with the generation algorithm GA it fully determines the engine's output sequence. e() advances to TA(e_i) and returns GA(e_i).

translation character set翻译字符集[lex.charset]/1

Consists of one character for each abstract Unicode character assigned to a code point, plus one for each unassigned Unicode scalar value; i.e. in one-to-one correspondence with Unicode scalar values. After phase 1, the characters in the source are elements of it.

transparent comparator透明比较器[associative.reqmts.general]

A comparison function object with a member type is_transparent (such as less<>); associative containers use it to enable member template overloads that look up with arguments other than key_type (heterogeneous lookup).

transparently replaceable透明可替换[basic.life]/9

When a new object is created exactly at the location of an old object with the same type, and conditions such as the old object (or its complete object) not being const are met, pointers, references, and names referring to the old object automatically refer to the new object; otherwise std::launder is needed.

trigraph sequence三字符组[diff.cpp14.lex]/1

A three-character sequence beginning with ?? (e.g. ??= for #, ??/ for \), which in C++14 and earlier was replaced by a single character in translation phase 1; since C++17 it is no longer a required feature. See [diff.cpp14].

trivial infinite loop平凡无限循环[stmt.iter.general]/3

An iteration statement with an empty body whose controlling expression, evaluated as a constant expression, is true, such as while (true);, for (;;) {}. Since C++26 its statement is treated as a call to std::this_thread::yield and is no longer UB.

trivially copyable class平凡可复制类[class.prop]/1

A class that has at least one eligible copy/move constructor or assignment operator, all of whose eligible such functions are trivial, and that has a trivial, non-deleted destructor. Its objects can be copied byte-wise with their values preserved.

trivially copyable type平凡可复制类型[basic.types.general]/7

Scalar types, trivially copyable class types, arrays of such types, and cv-qualified versions of these; the values of their objects can be copied by copying the underlying bytes (e.g. with memcpy), see [basic.types.trivial].

trivially empty iteration statement平凡空迭代语句[stmt.iter.general]/3

A while/do/for statement whose body is ; or { }, whose condition is an expression, and (for for) which has no iteration expression.

truncation towards zero向零截断[expr.mul]/4

The rounding of integer division /: the fractional part of the algebraic quotient is discarded (-7 / 2 == -3). Mandatory since C++11; the identity (a/b)*b + a%b == a implies that the result of % has the same sign as the dividend.

TU-localTU 局部[basic.link]/15

Entities with internal linkage, entities with no linkage defined within a TU-local entity, unnamed types used only to declare TU-local entities, specializations of TU-local templates, etc.; a value is also TU-local when it refers to or represents such an entity.

tuple-like (concept)tuple-like 概念[tuple.like]/1

Exposition-only concept with a closed list: remove_cvref_t<T> is a specialization of array, complex, pair, tuple, or ranges::subrange. The converting constructors/assignments/comparisons of tuple, tuple_cat, apply, and make_from_tuple accept only it; user types cannot join.

tuple-like protocoltuple-like 协议[dcl.struct.bind]/7

An open protocol consisting of std::tuple_size<E> (complete, with a value), std::tuple_element<I, E>, and a member or ADL-visible get<I>; user types can implement it, and structured bindings bind element-wise based on it.

two-phase name lookup两阶段名字查找[temp.res.general]/1

Non-standard term for the combined rules whereby non-dependent names in a template are looked up and bound at the point of definition, while lookup of dependent names is deferred to each specialization; at instantiation, dependent calls only add ADL. See [temp.res], [temp.dep.res].

type alias类型别名[dcl.typedef]/1

A name declared by typedef or an alias-declaration (using X = T;), i.e. a typedef-name; it does not introduce a new type, and its underlying entity is the aliased type.

type concept类型概念[temp.concept]/7

A concept whose prototype parameter is a type template parameter; only type concepts can be used as type-constraints or constrained placeholders.

type erasure类型擦除[func.wrap.general]/1

The technique of hiding concrete types known at compile time behind a run-time dispatch mechanism (virtual functions, function pointer tables, or thunks), so that objects of different types can be stored and used through a single type.

type punning类型双关[bit.cast]/3

Interpreting the bits of an object as a value of another type. Doing so via a reinterpret_cast pointer or an inactive union member is usually UB; the portable way is std::memcpy or std::bit_cast.

type-accessible可经类型访问[basic.lval]/11

An object with dynamic type Tobj is type-accessible through a glvalue of type Tref if and only if Tref is similar to Tobj, to the signed/unsigned type corresponding to Tobj, or to one of char/unsigned char/std::byte. Reading or writing an object through a glvalue through which it is not type-accessible is UB (the strict aliasing rule).

type-dependent (expression)类型依赖的(表达式)[temp.dep.expr]/1

An expression whose type may depend on template parameters, such as the name of a variable declared with a dependent type, this (in a class template), or a fold expression; sizeof, literals, etc. are never type-dependent.

type-id类型标识[dcl.name]/1

A way of writing a type in the form of "a declaration with the entity's name omitted", such as int*, int(*)(double); used in template arguments, typeid, alias declarations, etc.

type-only context仅类型语境[temp.res.general]/4

A position that can syntactically only be a type (member declarations, the return type in namespace-scope declarations, using aliases, trailing return types, the target type of named casts, etc.); there, a qualified name whose terminal name is dependent is treated as a type, and typename may be omitted (C++20).

type-only lookup仅类型查找[basic.lookup.general]/4

A lookup that considers only types and templates whose specializations are types; if both a type alias and its underlying entity are found, the alias is discarded. Used for elaborated type specifiers such as struct X and for base specifiers.

typedef declarationtypedef 声明[dcl.pre]/8

A declaration whose specifier sequence contains typedef; each declarator-id in it is declared to be a typedef-name ([dcl.typedef]).

typedef name for linkage purposes用于链接目的的 typedef 名[dcl.typedef]/4

An unnamed class or unnamed enumeration defined in a typedef declaration takes the first typedef-name for that type in the declaration as its name for linkage purposes, such as S in typedef struct { int x; } S;. Since C++20 such an unnamed class must be "C-compatible" (no member functions, base classes, default member initializers, or lambdas).

typename-specifiertypename 说明符[temp.res.general]/3

A type specifier of the form typename N::id or typename N::template id<...>; it tells the parser that a dependent qualified name denotes a type, while lookup remains ordinary qualified name lookup.

UAX #31 (Unicode Standard Annex #31)Unicode 标准附录 31[uaxid.general]/1

The Unicode annex on identifiers and syntax characters; it gives the default identifier syntax <Start> <Continue>* and optional conformance requirements R1–R8. C++ conforms to R1 (default identifiers, with the mathematical-notation profile and additionally allowing a leading _) and R4 (equivalence determined by NFC). See [uaxid].

ud-suffix用户定义字面量后缀[lex.ext]/1

The identifier at the end of a user-defined literal. Suffixes not beginning with _ are reserved for the standard, and those containing __ are reserved for the implementation.

unary fold一元折叠[expr.prim.fold]/2

A fold expression of the form (... op e) (unary left fold) or (e op ...) (unary right fold); with an empty pack, only &&, ||, and , have defined values.

uncaught exception未捕获的异常[except.throw]/6

An exception from the completion of the initialization of the exception object until the completion of the activation of some handler for it; when rethrown it becomes uncaught again. std::uncaught_exceptions() returns their number.

undefined behavior未定义行为(UB)[defns.undefined]

Behavior for which this document imposes no requirements. The compiler may assume it does not occur; explicit core-language UB cannot occur in constant evaluation.

underlying entity底层实体[basic.pre]/8

By default the underlying entity of an entity is the entity itself; the underlying entity of a type alias or namespace alias is the type/namespace it stands for. A name denotes the underlying entity.

underlying type底层类型[dcl.enum]/5

The integral type on which an enumeration is based; the enumeration has the same size, alignment, and value representation. It is called fixed when specified by an enum-base or when it is the default int of a scoped enumeration; otherwise the implementation chooses an integral type that can represent all the enumerators.

unevaluated operand未求值操作数[expr.context]/1

An operand that is not evaluated, such as the operand of sizeof, decltype, noexcept, or non-polymorphic typeid. Names in it do not constitute odr-uses, but semantic checking proceeds as usual.

unevaluated string不求值字符串[lex.string.uneval]/1

A string literal that is never evaluated, appearing in a static_assert message, [[deprecated]], extern "C", etc. (C++26). It must not have an encoding prefix or numeric/conditional escapes, and does not go through a literal encoding.

unexpanded pack未展开包[temp.variadic]/8

A pack in the pattern of a pack expansion that is not expanded by any nested pack expansion; all unexpanded packs in the same pack expansion must have the same number of elements and are expanded in lockstep.

unformatted input function非格式化输入函数[istream.unformatted]/1

An input function that constructs a sentry with noskipws = true, neither skips whitespace nor parses, and extracts characters as-is, such as get, getline, read, ignore; it records the number of characters extracted in gcount().

uniform random bit generator均匀随机比特生成器(URBG)[rand.req.urng]/1

A function object returning unsigned integers, each value in its range [G::min(), G::max()] being (ideally) equally probable; min/max must be static constant expressions with min < max. Since C++20 expressed by the concept uniform_random_bit_generator; the named requirement additionally needs a nested result_type.

union-like class类联合类[class.union.anon]/4

A union, or a class that has an anonymous union as a direct member.

unique keys唯一键[associative.reqmts.general]/4

The property of an associative or unordered container containing at most one element for each key (by the equivalence relation): set, map, unordered_set, unordered_map.

unique pointer唯一指针[unique.ptr.general]/1

An object that stores a pointer to a second object p and disposes of p through its associated deleter when it is itself destroyed; it is then said to own p. Every specialization of unique_ptr has these strict ownership semantics: movable but not copyable.

universal-character-name通用字符名(UCN)[lex.universal.char]/1

A way of naming any element of the translation character set using basic characters: \uXXXX, \UXXXXXXXX, \u{...} (C++23), \N{name} (C++23). Outside of literals it must not designate a basic character or a control character.

Unix timeUnix 时间[time.clock.system.overview]/1

A time measure counted from 1970-01-01 00:00:00 UTC that does not count leap seconds: every day has exactly 86400 seconds. sys_time is, by the standard's specification, Unix time, so sys_days and civil calendar dates can be converted with pure arithmetic.

unnamed bit-field无名位域[class.bit]/2

A bit-field that omits the identifier; it is not a member, cannot be initialized, and cannot be cv-qualified. A width of 0 causes the next bit-field to be aligned at an allocation unit boundary.

unnamed class无名类[class.pre]/1

A class defined by a class definition whose class-head omits the class name, as in struct { int x; } v;. It cannot be final and cannot have static data members.

unnamed namespace无名命名空间[namespace.unnamed]/1

namespace { ... }, equivalent to a namespace with a name unique to the TU plus a using-directive; it and the names declared in it have internal linkage ([basic.link]/4).

unordered associative container无序关联容器[unord.req.general]/1

A container that organizes elements into buckets using a hash function and a key equality predicate: unordered_set/map and their multi versions; lookup is constant on average and linear in the worst case; rehashing invalidates iterators but not references.

unqualified name无限定名字[basic.lookup.unqual]/4

A name that does not immediately follow a nested-name-specifier or the ./-> of a member access (possibly with template or ~ in between); by default it is subject to unqualified name lookup.

unscoped enumeration无作用域枚举[dcl.enum]/2

An enumeration declared with just enum: its enumerators are also bound in the enclosing scope, and they implicitly convert to integers via integral promotion.

unsequenced无序[intro.execution]/8

Neither of two evaluations is sequenced before the other in either direction, so they may overlap. Unsequenced conflicting accesses to the same memory location (that are not potentially concurrent) are UB.

unsigned integer type无符号整数类型[basic.fundamental]/2

The unsigned type corresponding to each signed integer type, with the same width, whose arithmetic is performed modulo 2^N.

unspecified behavior未指定行为[defns.unspecified]

Behavior, for a well-formed construct and correct data, that depends on the implementation, usually choosing any one of a set of possible outcomes given by the standard; the implementation need not document it nor be consistent each time. E.g. the evaluation order of function arguments.

unwrap_ref_decay_tunwrap_ref_decay_t[meta.trans.other]

A type transformation that first applies decay_t and then unwraps reference_wrapper<X> into X&. make_pair and make_tuple use it to determine element types, so std::ref(x) produces a reference element; CTAD does not do this unwrapping.

usable (binary operator expression)可用(二元运算符表达式)[class.compare.default]/3

a @ b is usable if, when an operand is of class or enumeration type, overload resolution on it yields a usable candidate; otherwise if it is a valid expression. The conditions for deleting defaulted comparisons are all phrased in these terms.

usable candidate可用候选[over.match.general]/4

Overload resolution succeeds and the selected candidate is either a built-in operator candidate or a function that is not deleted and is accessible in that context. Used to determine whether a defaulted comparison operator is defined as deleted ([class.compare.default]).

usable in constant expressions可用于常量表达式[expr.const.init]/7

At program point P, a variable that is constant-initialized, is potentially-constant, and whose initializing declaration is reachable (subject to TU-local restrictions). Constant evaluation can read such variables.

user-declared用户声明的[class.mem.general]/4

A direct member or friend declared by some member-declaration. Declarations with = default and = delete are user-declared too; this is the criterion used by the rules for implicitly declaring special member functions.

user-defined conversion用户定义转换[class.conv.general]/1

A type conversion of class objects specified by a (non-explicit) constructor or a conversion function. At most one is implicitly applied to a single value.

user-defined conversion sequence用户定义转换序列[over.ics.user]/1

An initial standard conversion sequence + one user-defined conversion (constructor or conversion function) + a second standard conversion sequence. Two such sequences are comparable only if they use the same conversion function/constructor.

user-defined literal用户定义字面量[lex.ext]/2

An integer, floating-point, character, or string literal with a ud-suffix, such as 12_km, "abc"s; it is rewritten into a call to a literal operator (template) operator""X.

user-provided用户提供的[dcl.fct.def.default]/5

A function that is user-declared and not explicitly defaulted or deleted on its first declaration. A function defaulted with = default outside the class is user-provided, and therefore not trivial.

uses-allocator constructionuses-allocator 构造[allocator.uses.construction]/1

Constructing T with an allocator alloc and arguments args...: if T uses an allocator compatible with alloc, the allocator is passed in following the leading convention T(allocator_arg, alloc, args...) or the trailing convention T(args..., alloc); otherwise it is ignored; pair is handled recursively member by member. The construct of polymorphic_allocator and scoped_allocator_adaptor performs it.

using-declarationusing 声明[namespace.udecl]/1

using N::name;: binds to the name name the set of declarations found by qualified lookup of N::name at the point of declaration (overloads added later are not included); in a class it can introduce base class members and change their access, or inherit constructors.

using-directiveusing 指令[namespace.udir]/3

using namespace N;. It introduces no names; during unqualified lookup, the members of N are treated as if declared in the nearest enclosing namespace that contains both the directive and N; it is transitive and cannot appear in class scope.

usual arithmetic conversions寻常算术转换[expr.arith.conv]/1

The algorithm by which binary arithmetic, comparison, bitwise operators, and ?: bring two arithmetic or enumeration operands to a common type; for integers, each is first integrally promoted, then they are merged by signedness and rank.

usual deallocation function常规释放函数[basic.stc.dynamic.deallocation]/3

A non-template deallocation function whose parameters after the first are, in order, only optional std::destroying_delete_t, std::size_t, and std::align_val_t parameters; delete-expressions call only such functions.

vacuous initialization空初始化[basic.life]/2

A variable is default-initialized with no other initialization performed, and (for class types) the constructor selected is trivial; e.g. int x;.

valid but unspecified state有效但未指定的状态[defns.valid]

(Library) The object's value is unspecified, but its invariants hold and operations on it work as specified for its type. Library objects that have been moved from are usually in this state.

valid contained type合法被包含类型[optional.optional.general]/2

An lvalue reference type, or a complete non-array object type, that after removing cvref is not in_place_t or nullopt_t; instantiating optional with any other type is ill-formed.

valid in the context of在某求值的上下文中有效[basic.compound]/6

Function pointers and null pointer values are always valid; a pointer value pointing to or past an object O is valid in evaluations that occur during the storage duration of O. When invalid, indirection is UB, while boolean conversion and comparison are implementation-defined (C++26).

valid range有效范围[iterator.requirements.general]/10

A range [i, s) whose sentinel is reachable from the starting iterator. The result of calling a library function on an invalid range is undefined.

valid template argument for unexpectedunexpected 的合法模板实参[expected.un.general]/2

A non-array, non-cv-qualified object type that is not a specialization of unexpected; a definition instantiating unexpected with any other type is ill-formed, and this is also expected's requirement on E.

valid template-id有效的 template-id[temp.names]/13

A template-id with an appropriate number of arguments, each argument matching its corresponding parameter, successful substitution into subsequent parameters, and (when not dependent) satisfied associated constraints. A simple-template-id for a non-function template must be valid.

valid value type for expectedexpected 的合法值类型[expected.object.general]/2

remove_cv_t is void, or is a complete non-array object type that is not in_place_t, unexpect_t, or a specialization of unexpected.

value category值类别[basic.lval]/2

Every expression belongs to exactly one of lvalue, xvalue, prvalue; this static property is called its value category. Together with the type it determines reference binding, overload resolution, and the result of decltype.

value computation值计算[intro.execution]/7

The "compute the result" part of an evaluation: for a glvalue, determining the object it designates; for a prvalue, obtaining the value. It is described separately from the initiation of side effects and is the basis of the sequencing rules.

value representation值表示[basic.types.general]/2

The set of bits in the object representation that actually participate in representing a value of the type.

value type (of an iterator)(迭代器的)值类型[iterator.requirements.general]/1

The object type T corresponding to *i for an input iterator i; since C++20 queried with iter_value_t<I>, which for const int* is int (cv removed).

value-dependent (expression)值依赖的(表达式)[temp.dep.constexpr]/1

An expression whose value, when evaluated as a constant expression, may depend on template parameters, such as the name of a constant template parameter, sizeof(T), sizeof...(Ts); type-dependent expressions are also value-dependent.

value-initialization值初始化[dcl.init.general]/8

For a class type: if the constructor selected by default-initialization is not user-provided, the object is first zero-initialized, and then in all cases default-initialized; arrays are value-initialized element by element; other types are zero-initialized. Triggered by () and empty braces {}, among others.

value-preserving conversion保值转换[simd.general]/8

A std::simd term: a conversion from an arithmetic type U to a vectorizable type T is value-preserving if all possible values of U can be represented by T. Broadcast constructors and loads accept only value-preserving conversions by default; otherwise an explicit conversion or flag_convert is required.

valueless无值(indirect / polymorphic)[indirect.general]/1

The state of an indirect or polymorphic object that has no owned object; it can arise only after being moved from, and can be queried with valueless_after_move(). Dereferencing a valueless object violates a precondition.

valueless by exception因异常而无值[variant.status]/1

The state in which a variant holds no value: valueless_by_exception() is true and index() is variant_npos. It arises only when initialization of the new value throws an exception during a type-changing assignment or emplace.

values of the enumeration枚举的值集合[dcl.enum]/8

With a fixed underlying type, all values of the underlying type; otherwise the values representable by the smallest bit-field (of width M) that can hold all the enumerators. A static_cast of a value outside this set to an enumeration whose underlying type is not fixed is undefined behavior.

vararg function可变参数函数[dcl.fct]/6

A function whose parameter-type-list contains an ellipsis ..., such as printf; it cannot be a coroutine. The form f(int...) (without a comma) is deprecated in C++26.

variable变量[basic.pre]/7

An object or reference (other than a non-static data member) introduced by a declaration that is not the parameter-declaration of a template parameter. Static data members and function parameters are variables.

variable arguments可变实参[cpp.replace.general]/16

In an invocation of a variadic macro, all the arguments after the named parameters together with the commas between them, merged into one unit, referred to by __VA_ARGS__.

variable template变量模板[temp.pre]/3

A template introduced by a template declaration of a variable, such as template<class T> constexpr T pi = ...;; a variable template at class scope is called a static data member template (C++14).

variant member变体成员[class.union.anon]/4

The non-static data members of a union (other than anonymous unions), and the non-static data members of an anonymous union that is a class member; they may be inactive, and the construction/destruction rules treat them specially.

vectorizable type可向量化类型[simd.general]/2

A type that can be an element of a std::simd data-parallel type: all standard integer types, character types, float and double, the defined float16_t/float32_t/float64_t, and complex whose components are vectorizable floating-point types.

vectorization-unsafe向量化不安全[algorithms.parallel.defns]/5

A standard library function specified to synchronize with other invocations (other than memory allocation/deallocation and lock-free atomic read-modify-write), such as mutex::lock; calling one in user code of an unseq/par_unseq algorithm is UB.

viable function可行函数[over.match.viable]/1

A candidate function whose number of parameters matches the arguments (taking ellipses and default arguments into account), whose associated constraints are satisfied, and for which an implicit conversion sequence exists from each argument to the corresponding parameter.

view视图[range.view]/2

A range modeling std::ranges::view: movable, declared via enable_view, with O(1) move construction, O(N+M) total cost for destroying N copies and M moved-from objects, and O(1) copying when copyable. The underlying range an adaptor holds by value is always a view.

viewable range可视图化范围[range.refinements]/6

A range that can be safely converted to a view by views::all: a view itself (constructible from the argument), a non-view lvalue, or a movable non-view rvalue that is not an initializer_list. All range adaptors require it for their first argument.

virtual base class虚基类[class.mi]/4

A base class specified with virtual; no matter how many times it appears in the class lattice, the most derived object contains only one subobject of that type, initialized by the most derived class.

virtual function虚函数[class.virtual]/1

A non-static member function first declared with virtual, or that overrides a virtual function of a base class; a call through a pointer/reference calls the final overrider for the dynamic type.

virtual function call虚函数调用[expr.call]/2

When the selected function is virtual and the name in the class member access is not a qualified name, the final overrider of that function in the dynamic type of the object expression is called; such a call is called a virtual function call.

visible side effect可见副作用[intro.races]/9

With respect to a read B, the write A that happens before B with no other write in between; a read of a non-atomic scalar obtains the value stored by A.

volatile objectvolatile 对象[basic.type.qualifier]/1

An object of type volatile T, or any subobject of a volatile object.

weakly parallel forward progress guarantee弱并行前进保证[intro.progress]/10

The implementation does not guarantee that the thread will eventually make progress; a typical example is threads created by the library under execution::par_unseq.

well-formed program良构程序[defns.well.formed]

A C++ program constructed according to the syntax rules and semantic rules (including the rules for which no diagnostic is required). Well-formedness is a static property; a well-formed program may still have UB for some inputs.

width宽度[basic.fundamental]/1

The number of bits N in the value representation of an integer type; a signed type has range −2^(N−1)..2^(N−1)−1, an unsigned type 0..2^N−1.

XID_Start / XID_ContinueXID 起始 / 后续属性[lex.name]

Unicode character properties: XID_Start is roughly the letter-like characters; XID_Continue adds digits, combining marks, connector punctuation, etc.; the prefix X means the set is closed under NFKC normalization. The first character of a C++ identifier is taken from XID_Start (plus _ and mathematical start characters), subsequent characters from XID_Continue.

xvalue亡值[basic.lval]/1

A glvalue that denotes an object whose resources can be reused, e.g. std::move(x), a call to a function returning T&&, or a member of a materialized temporary.

yield-expression产出表达式[expr.yield]/1

co_yield e, equivalent to co_await p.yield_value(e) (where p is the promise object), but without going through await_transform. It may appear only in a suspension context, at the level of an assignment-expression.

zero-initialization零初始化[dcl.init.general]/5

Initializes a scalar to the value "integer 0 converted to that type" (a pointer gets the null pointer value, which need not be all-zero bits); classes and arrays are handled recursively with padding bits zeroed, for a union only the first named member is handled, and for a reference nothing is done. Objects with static storage duration are always zero-initialized first.

zero-length match零长度匹配[re.regiter.general]/2

The case where, in the match held by a regex_iterator, match[0].matched is true and match[0].first == match[0].second; operator++ handles it specially to guarantee that iteration advances.

zombie name僵尸名字[zombie.names]/1

A name left behind by a facility removed from the standard (auto_ptr, bind1st, , …), still reserved for previous standardization; programs must not use it for other purposes.