has_virtual_destructor.qbk
来自「Boost provides free peer-reviewed portab」· QBK 代码 · 共 29 行
QBK
29 行
[/ Copyright 2007 John Maddock. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt).][section:has_virtual_destructor has_virtual_destructor] template <class T> struct has_virtual_destructor : public __tof {}; __inherit If T is a (possibly cv-qualified) type with a virtual destructorthen inherits from __true_type, otherwise inherits from __false_type.__compat This trait is provided for completeness, since it's part of theTechnical Report on C++ Library Extensions. However, there is currently no way to portably implement this trait. The default version provided always inherits from __false_type, and has to be explicitly specialized for types with virtual destructors unless the compiler used has compiler __intrinsicsthat enable the trait to do the right thing: currently (May 2005) only Visual C++8 and GCC-4.3 have the necessary __intrinsics.__std_ref 12.4.__header ` #include <boost/type_traits/has_virtual_destructor.hpp>` or ` #include <boost/type_traits.hpp>`[endsect]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?