Não foi possível encontrar esta entrada. Mostrando resultados aproximados. Verifique a ortografia ou proponha a adição deste termo ao dicionário.
隐式声明
若隐式声明
The deleted implicitly-declared move constructor is ignored by overload resolution (otherwise it would prevent copy-initialization from rvalue).
重载决议 忽略被删除的隐式声明的移动构造函数(否则它会阻止从右值复制构造 ) 。
If no user-defined constructors are present and the implicitly-declared default constructor is not trivial, the user may still inhibit the automatic generation of an implicitly-defined default constructor by the compiler with the keyword delete. (since C++11)
Such constructor is treated as user-provided (see below and value initialization). Default constructors are called during default initializations and value initializations. [edit] Implicitly-declared default constructor
默认构造函数在默认初始化 和值初始化 时得到调用。 [编辑 ] 隐式声明的默认构造函数
Except that if no exception specification is explicitly provided, the exception specification is considered to be one that would be used by the implicitly-declared destructor (see below).
除非不显式提供异常规定,则异常规定被认为是隐式声明的析构函数(见后述)所用者。
The exception-specification of an implicitly-declared special member function is also evaluated only when needed (in particular, implicit declaration of a member function of a derived class does not require the exception-specification of a base member function to be instantiated)
As with any implicitly-declared special member function, the exception specification of the implicitly-declared destructor is non-throwing unless the destructor of any potentially-constructed base or member is potentially-throwing (since C++17) implicit definition would directly invoke a function with a different exception specification (until C++17).
A move assignment is less, not more restrictively defined than ordinary assignment; where ordinary assignment must leave two copies of data at completion, move assignment is required to leave only one. [edit] Implicitly-declared move assignment operator
The implicitly-declared destructor for class T is trivial if all of the following is true
若下列所有条件为真,则 T 的析构函数为平凡:
If the implicitly-declared default constructor is not defined as deleted, it is defined (that is, a function body is generated and compiled) by the compiler if odr-used, and it has exactly the same effect as a user-defined constructor with empty body and empty initializer list.
Original: If the implicitly-declared destructor is not deleted or trivial, it is defined (that is, a function body is generated and compiled) by the compiler.
Original: The implicitly-declared default constructor for class T is trivial if all of the following is true
若下列全部为真则类 T 的默认构造函数为平凡(即不进行动作 ) :
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.