Questions about postblit and move semantics
问题 I have already asked a similar question a while ago, but I'm still unclear on some details. Under what circumstances is the postblit constructor called? What are the semantics of moving an object? Will it be postblitted and/or destructed? What happens if I return a local variable by value? Will it implicitly be moved? How do I cast an expression to an rvalue? For example, how would a generic swap look like? 回答1: A postblit constructor is called whenever the struct is copied - e.g. when