1#ifndef LINEARALGEBRA_SRC_MOLPRO_LINALG_ARRAY_ARRAYHANDLERWITHCOPYFUNC_H
2#define LINEARALGEBRA_SRC_MOLPRO_LINALG_ARRAY_ARRAYHANDLERWITHCOPYFUNC_H
4#include <molpro/linalg/array/ArrayHandler.h>
15template <
class AL,
class AR = AL>
27 AL
copy(
const AR &source)
override {
Base for handlers whose left arrays are created by a function given by the user.
Definition ArrayHandlerWithCopyFunc.h:16
AL copy(const AR &source) override
Definition ArrayHandlerWithCopyFunc.h:27
ArrayHandlerWithCopyFunc(copy_func_type copy_func)
Constructor taking a copy function.
Definition ArrayHandlerWithCopyFunc.h:24
std::function< AL(const AR &)> copy_func_type
Definition ArrayHandlerWithCopyFunc.h:18
copy_func_type m_copy_func
function for making a copy
Definition ArrayHandlerWithCopyFunc.h:34
Enhances various operations between pairs of arrays and allows dynamic code injection with uniform in...
Definition ArrayHandler.h:163
std::unique_ptr< Counter > m_counter
Definition ArrayHandler.h:177
Definition ArrayHandler.h:19