- 462 名前:デフォルトの名無しさん mailto:sage [2006/12/16(土) 12:19:11 ]
- Tはテンプレート引数でコンテナ型です。
typedef typename boost::mpl::if_<boost::is_const<T>, typename T::const_iterator, typename T::iterator>::type Hoge; typedef typename boost::mpl::if_<boost::is_const<T>, typename T::const_pointer, typename T::pointer>::type Hage; typedef typename boost::mpl::if_<boost::is_const<T>, typename T::const_reference, typename T::reference>::type Debu; こういうことをやりたいんですが、もっとシンプルに記述できる方法はないでしょうか?
|

|