Lines Matching full:assignment
36 // and basically doing destroy-then-copy-construct in the assignment operator. The empty state is n…
54 // Primary template - uses std::optional and introduces an empty state in case assignment fails.
113 // an empty state to represent failure to perform an assignment. For copy-assignment, this happens:
115 // 1. If the type is copyable (which includes copy-assignment), we can use the type's own assignmen…
117 …the type is not copyable, but it is nothrow-copy-constructible, then we can implement assignment as
120 // The exact same reasoning can be applied for move-assignment, with copyable replaced by movable a…
122 …enever we can apply any of these optimizations for both the copy assignment and the move assignment
136 // When _Tp doesn't have an assignment operator, we must implement __movable_box's assignment opera…
144 // Hence, when the _Tp doesn't have an assignment operator, we can't risk making it a potentially-o…
202 // Implementation of assignment operators in case we perform optimization (1)
210 // Implementation of assignment operators in case we perform optimization (2)