- Test:
- scrutinise an adapter to snapshot non-assignable values.
- create instantiations for various types
- both assignable and non-assignable types
- empty-construct and copy construct the adapter
- perform assignments and even content swapping
- use counting to verify proper instance management
- compare by delegating to element comparison
- See also
- replaceable-item.hpp
-
steam::control::MementoTie
Definition at line 97 of file replaceable-item-test.cpp.
◆ verifySaneInstanceHandling()
void verifySaneInstanceHandling |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify that ctor and dtor calls are balanced, even when assigning and self-assigning.
- Note
- Tracker uses the simple implementation for assignable values, while NonAssign uses the embedded-buffer implementation
Definition at line 191 of file replaceable-item-test.cpp.
◆ verifyWrappedPtr()
void verifyWrappedPtr |
( |
| ) |
|
|
inlineprivate |
◆ verifyNonComparableElements()
void verifyNonComparableElements |
( |
| ) |
|
|
inlineprivate |
◆ verifyOnlyMoveConstructible()
void verifyOnlyMoveConstructible |
( |
| ) |
|
|
inlineprivate |
- Test:
- handle elements that allow nothing but move construction
- Todo:
- conceptually, the whole point of this container is the ability to snapshot elements which allow nothing but move construction.
Seemingly, GCC-4.9 does not fully implement perfect forwarding ///////////////////////TICKET #1059 : re-visit with never compiler
Definition at line 267 of file replaceable-item-test.cpp.
The documentation for this class was generated from the following file: