BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
CloneableVector< T > Class Template Reference

A vector of unique pointers to objects that are cloneable. More...

+ Inheritance diagram for CloneableVector< T >:

Public Member Functions

 CloneableVector (const CloneableVector &other)
 
void push_back (T *t)
 
void emplace_back (std::unique_ptr< T > &&t)
 

Detailed Description

template<class T>
class CloneableVector< T >

A vector of unique pointers to objects that are cloneable.

Equips vector<unique_ptr<T>> with copy constructor. For use with polymorphic objects, or in pimpl idiom. The objects pointed to must posses a clone() function.

Definition at line 30 of file CloneableVector.h.


The documentation for this class was generated from the following file: