> あ、そうだ > ついでにstd::allocator<T>::rebind<U>::otherの使い方も教えて下さい class std::deque<typename T1, typename T2>; typedef std::deque<int, std::allocator<int> > container; とかだったらdequeの中で typedef typename T2::template rebind<bucket>::other bucket_type; みたいな使い方をしてるな 結局 template<typename U> struct rebind {typedef U other;}; でしかないからな 参考:2006/02/23(木)22時46分50秒