DUNE PDELab (2.7)
polymorphicsmallobject.hh
A wrapper providing small object optimization with polymorphic types.
Definition: polymorphicsmallobject.hh:48
const Base & get() const
Obtain reference to stored object.
Definition: polymorphicsmallobject.hh:126
bool bufferUsed() const
Check if object is stored in internal stack buffer.
Definition: polymorphicsmallobject.hh:120
PolymorphicSmallObject(Derived &&derived)
Construct from object.
Definition: polymorphicsmallobject.hh:65
PolymorphicSmallObject & operator=(const PolymorphicSmallObject &other)
Copy assignment from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:95
PolymorphicSmallObject(const PolymorphicSmallObject &other)
Copy constructor from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:83
~PolymorphicSmallObject()
Destructor.
Definition: polymorphicsmallobject.hh:89
PolymorphicSmallObject(PolymorphicSmallObject &&other)
Move constructor from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:77
PolymorphicSmallObject()
Default constructor.
Definition: polymorphicsmallobject.hh:52
PolymorphicSmallObject & operator=(PolymorphicSmallObject &&other)
Move assignment from other PolymorphicSmallObject.
Definition: polymorphicsmallobject.hh:106
Base & get()
Obtain mutable reference to stored object.
Definition: polymorphicsmallobject.hh:132
std::integral_constant< bool, value > bool_constant
A template alias for std::integral_constant<bool, value>
Definition: type_traits.hh:118
decltype(auto) ifElse(const Condition &condition, IfFunc &&ifFunc, ElseFunc &&elseFunc)
A conditional expression.
Definition: hybridutilities.hh:355
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)