Fast polymorphic down-casting functions.
More...
|
template<class Target , class Source > |
Target | utility::down_cast (Source &s) |
| Fast assert-checked polymorphic down-cast: reference argument. More...
|
|
template<class Target , class Source > |
Target | utility::down_cast (Source *p) |
| Fast assert-checked polymorphic down-cast: pointer argument. More...
|
|
Fast polymorphic down-casting functions.
- Author
- Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)
- Note
- A fast polymorphic down-cast when the cast is known to be valid
-
The cast validity is assert-checked in debug builds