2008-12-09 templateで学ぶやる気のないclosure Program C++ template<typename T> struct Foo { template<typename> struct Bar { typedef T type; // Barの外側の環境にあるTを保持している }; };