• Home
  • Raw
  • Download

Lines Matching refs:movable

21 [important To be able to use containers of movable-only values in C++03 mode you will need to use c…
95 [section:implementing_movable_classes Implementing copyable and movable classes]
99 [section:copyable_and_movable_cpp0x Copyable and movable classes in C++0x]
177 [section:copyable_and_movable_cpp03 Copyable and movable classes in portable syntax for both C++03 …
230 Some types are not amenable to copy semantics but can still be made movable. For example:
236 By making such types movable (though still non-copyable) their utility is tremendously
251 To write a movable but not copyable type in portable syntax, you need to follow these simple steps:
266 /implementation described above), but also allows these algorithms to operate on movable
295 movable and copyable types are more efficiently handled if those containers
348 //Even if movable can't be copied
354 movable factory()
356 movable tmp;
363 movable m(factory());
367 the line marked with `(1)` would trigger a compilation error because `movable` can't be copied. Usi…
373 movable-only `movable` class with classes `copyable` (copy-only type), `copy_movable` (can be copie…
374 `non_copy_movable` (non-copyable and non-movable):
414 movable get_movable()
415 { return movable(); }
445 [import ../example/movable.hpp]
448 `movable` objects can be moved from one container to another using move iterators and insertion
622 movable m;
623 BOOST_RV_REF(movable) r = m;
627 …ignment_operator Assignment operator in classes derived from or holding copyable and movable types]
657 in all classes holding copyable and movable classes which might be annoying in some cases.
659 An alternative is to implement a single `operator =()` for copyable and movable classes
675 [section:templated_assignment_operator Templated assignment operator in copyable and movable types]
680 Given a movable and copyable class, if a templated assignment operator (*) is added:
721 which is convertible to the movable base class (usual C++ derived to base conversion). When users m…