82
Make a deep copy of each list element.
84
@note A template function and not a template method of class List
85
is employed because of explicit template instantiation:
86
in server code there are explicit instantiations of List<T> and
87
an explicit instantiation of a template requires that any method
88
of the instantiated class used in the template can be resolved.
89
Evidently not all template arguments have clone() method with
92
@return You must query the error state in Session for out-of-memory
93
situation after calling this function.
97
void list_copy_and_replace_each_value(List<T> &list, memory::Root *mem_root)
99
/* Make a deep copy of each element */
100
typename List<T>::iterator it(list.begin());
103
it.replace(el->clone(mem_root));
82
Make a deep copy of each list element.
84
@note A template function and not a template method of class List
85
is employed because of explicit template instantiation:
86
in server code there are explicit instantiations of List<T> and
87
an explicit instantiation of a template requires that any method
88
of the instantiated class used in the template can be resolved.
89
Evidently not all template arguments have clone() method with
92
@return You must query the error state in Session for out-of-memory
93
situation after calling this function.
97
void list_copy_and_replace_each_value(List<T> &list, memory::Root *mem_root)
99
/* Make a deep copy of each element */
100
typename List<T>::iterator it(list.begin());
103
it.replace(el->clone(mem_root));
106
106
Foreign_key::Foreign_key(const Foreign_key &rhs, memory::Root *mem_root)