20#ifndef OPM_COPYABLE_PTR_HPP
21#define OPM_COPYABLE_PTR_HPP
35 ptr_ = std::make_unique<T>(*other.get());
44 ptr_ = std::make_unique<T>(*other.get());
53 ptr_ = std::move(uptr);
57 T* operator->()
const {
return ptr_.get(); }
59 explicit operator bool()
const noexcept {
60 return ptr_ ? true :
false;
63 T* get()
const {
return ptr_.get();}
64 T* release()
const {
return ptr_.release();}
66 std::unique_ptr<T> ptr_;
Definition: CopyablePtr.hpp:30
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30