create storage for captured object and const accessor