class template
std::polymorphic
- Header
<memory>- Draft
- [polymorphic.syn]
- Scope
std- cppreference
- <memory> nearest page
Synopsis
template<class T, class Allocator = allocator<T>>
class polymorphic;Member types
| Name | Declaration |
|---|---|
allocator_typetype alias · member type | = Allocator |
const_pointertype alias · member type | = traits::const_pointer |
pointertype alias · member type | = traits::pointer |
value_typetype alias · member type | = T |
Member functions
| Name | Declaration |
|---|---|
polymorphicconstructor · 12 overloads | polymorphic() +11 more |
~polymorphicdestructor | ~polymorphic() |
operator=operator · 2 overloads | polymorphic& operator=(const polymorphic& other) +1 more |
get_allocatormember function | allocator_type get_allocator() const |
operator*operator · 2 overloads | const T& operator*() const +1 more |
operator->operator · 2 overloads | const_pointer operator->() const +1 more |
swapmember function | void swap(polymorphic& other) |
valueless_after_movemember function | bool valueless_after_move() const |