xtd::mem implemented