【技术概念 Day14】MoveAssignable及相关内容

in eostechlover •  7 years ago 

MoveAssignable

t, a modifiable lvalue expression (http://en.cppreference.com/w/cpp/language/value_category)of type T

rv, an rvalue (http://en.cppreference.com/w/cpp/language/value_category)expression of type T
WechatIMG1022.jpeg

CopyAssignable

t, a modifiable lvalue expression (http://en.cppreference.com/w/cpp/language/value_category)of type T

v, an lvalue (http://en.cppreference.com/w/cpp/language/value_category)expression of type T or const T or an rvalue (http://en.cppreference.com/w/cpp/language/value_category)expression of type const T
WechatIMG1023.jpeg

MoveConstructible

Specifies that an instance of the type can be constructed from an rvalue (http://en.cppreference.com/w/cpp/language/value_category)argument.

rv, an rvalue (http://en.cppreference.com/w/cpp/language/value_category)expression of type T

u, an arbitrary identifier
WechatIMG1024.jpeg

CopyConstructible

Specifies that an instance of the type can be copy-constructed from an lvalue expression.(http://en.cppreference.com/w/cpp/language/value_category)

T u = v;T(v)
WechatIMG1025.jpeg

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!