Lines Matching refs:cast_retty
120 template<class To, class From> struct cast_retty;
150 typedef typename cast_retty<To, SimpleFrom>::ret_type ret_type;
160 struct cast_retty {
170 static typename cast_retty<To, From>::ret_type doit(const From &Val) {
179 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
180 typename cast_retty<To, FromTy>::ret_type Res2
181 = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
196 inline typename cast_retty<X, Y>::ret_type cast(const Y &Val) {
206 inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) {
222 inline typename cast_retty<X, Y>::ret_type dyn_cast(const Y &Val) {
230 inline typename cast_retty<X, Y*>::ret_type dyn_cast_or_null(Y *Val) {