"README.md" did not exist on "a2be6bf04a22dbe871d4377e94631f3cc065a2a7"
Newer
Older
#ifndef Mantid_make_cow_h
#define Mantid_make_cow_h
#include "MantidKernel/cow_ptr.h"
#include <boost/make_shared.hpp>
/*
Creates a cow_ptr in-place.
*/
namespace Mantid {
namespace Kernel {
template <class T, class... Args> inline cow_ptr<T> make_cow(Args &&... args) {
return cow_ptr<T>(boost::make_shared<T>(std::forward<Args>(args)...));
}
} // namespace Kernel
} // namespace Mantid
#endif // Mantid_cow_unique_h