2005/10/27

Boost Concept Assignable

Concept Assignable

Assignable

Description(描述)

Assignable types 必须有 copy constructors, 赋值用的 operator=, 以及定义 swap 函数。

Refinement of(强化自)

Notation(符号)

X
A type playing the role of assignable-type in the Assignable concept.
x, y
Objects of type X

Valid expressions(有效表达式)

Name Expression Type Semantics

Assignment

x = y

X &

Require operator=

Swap

swap(x, y)

void

Require swap() function

Models

  • int

没有评论: