DUNE PDELab (git)
polymorphicsmallobject.hh
A wrapper providing small object optimization with polymorphic types.
Definition: polymorphicsmallobject.hh:47
const Base & get() const
Obtain reference to stored object.
Definition: polymorphicsmallobject.hh:133
bool bufferUsed() const
Check if object is stored in internal stack buffer.
Definition: polymorphicsmallobject.hh:127
PolymorphicSmallObject(Derived &&derived)
Construct from object.
Definition: polymorphicsmallobject.hh:71
PolymorphicSmallObject(PolymorphicSmallObject &&other) noexcept
Move constructor from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:84
PolymorphicSmallObject & operator=(const PolymorphicSmallObject &other)
Copy assignment from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:102
PolymorphicSmallObject & operator=(PolymorphicSmallObject &&other) noexcept
Move assignment from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:113
PolymorphicSmallObject(const PolymorphicSmallObject &other)
Copy constructor from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:90
~PolymorphicSmallObject()
Destructor.
Definition: polymorphicsmallobject.hh:96
PolymorphicSmallObject()
Default constructor.
Definition: polymorphicsmallobject.hh:58
Base & get()
Obtain mutable reference to stored object.
Definition: polymorphicsmallobject.hh:139
constexpr auto max
Function object that returns the greater of the given values.
Definition: hybridutilities.hh:484
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)