![]() |
Dune-Functions 2.11
|
Loading...
Searching...
No Matches
polymorphicsmallobject.hh
Go to the documentation of this file.
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
T is_base_of_v
T max(T... args)
