2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
8 [section:is_polymorphic is_polymorphic]
10 struct is_polymorphic : public __tof {};
12 __inherit If T is a (possibly cv-qualified) polymorphic type
13 then inherits from __true_type,
14 otherwise inherits from __false_type. Type `T` must be a complete type.
18 __compat The implementation requires some knowledge of the compilers ABI,
19 it does actually seem to work with the majority of compilers though.
21 __header ` #include <boost/type_traits/is_polymorphic.hpp>` or ` #include <boost/type_traits.hpp>`
25 [: Given: `class poly{ virtual ~poly(); };` ]
27 [:`is_polymorphic<poly>` inherits from `__true_type`.]
29 [:`is_polymorphic<poly const>::type` is the type `__true_type`.]
31 [:`is_polymorphic<poly>::value` is an integral constant
32 expression that evaluates to /true/.]
34 [:`is_polymorphic<T>::value_type` is the type `bool`.]