Google OR-Tools: ortools/util/lazy_mutable_copy.h Source File
Go to the documentation of this file.
14#ifndef ORTOOLS_UTIL_LAZY_MUTABLE_COPY_H_
15#define ORTOOLS_UTIL_LAZY_MUTABLE_COPY_H_
81 if (copy_ == nullptr && ptr_ != nullptr) {
96 const T* get() const { return ptr_; }
LazyMutableCopy(const LazyMutableCopy &)=delete
class LazyMutableCopy< T > & operator=(const LazyMutableCopy< T > &)=delete
T * get_mutable()
Definition lazy_mutable_copy.h:64
void dispose() &&
Definition lazy_mutable_copy.h:105
bool has_ownership() const
Definition lazy_mutable_copy.h:92
const T * operator->() const
Definition lazy_mutable_copy.h:98
LazyMutableCopy(LazyMutableCopy &&)=default
class LazyMutableCopy< T > & operator=(LazyMutableCopy< T > &&)=default
std::unique_ptr< T > copy_or_move_as_unique_ptr() &&
Definition lazy_mutable_copy.h:80
LazyMutableCopy(const T &obj)
Definition lazy_mutable_copy.h:48
LazyMutableCopy(T &&obj)
Definition lazy_mutable_copy.h:53
const T & operator*() const
Definition lazy_mutable_copy.h:97
const T * get() const
Definition lazy_mutable_copy.h:96