DUNE-FUNCTIONS (unstable)
polymorphicsmallobject.hh
A wrapper providing small object optimization with polymorphic types.
Definition: polymorphicsmallobject.hh:51
const Base & get() const
Obtain reference to stored object.
Definition: polymorphicsmallobject.hh:137
bool bufferUsed() const
Check if object is stored in internal stack buffer.
Definition: polymorphicsmallobject.hh:131
PolymorphicSmallObject(Derived &&derived)
Construct from object.
Definition: polymorphicsmallobject.hh:75
PolymorphicSmallObject(PolymorphicSmallObject &&other) noexcept
Move constructor from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:88
PolymorphicSmallObject & operator=(const PolymorphicSmallObject &other)
Copy assignment from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:106
PolymorphicSmallObject & operator=(PolymorphicSmallObject &&other) noexcept
Move assignment from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:117
PolymorphicSmallObject(const PolymorphicSmallObject &other)
Copy constructor from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:94
~PolymorphicSmallObject()
Destructor.
Definition: polymorphicsmallobject.hh:100
PolymorphicSmallObject()
Default constructor.
Definition: polymorphicsmallobject.hh:62
Base & get()
Obtain mutable reference to stored object.
Definition: polymorphicsmallobject.hh:143
Definition: polynomial.hh:17
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)