diff --git a/doc/html/boost_typetraits/background.html b/doc/html/boost_typetraits/background.html index 2936f47..be75eb7 100644 --- a/doc/html/boost_typetraits/background.html +++ b/doc/html/boost_typetraits/background.html @@ -1,13 +1,13 @@
-The optimized copy example shows how type traits may be used to perform optimization decisions at compile-time. Another important usage of type traits is to allow @@ -397,7 +397,7 @@ references [6].
- First, let us examine the definition of std::pair
, omitting
+ First, let us examine the definition of std::pair, omitting
the comparison operators, default constructor, and template copy constructor
for simplicity:
Table 1.2. Required Constructor Argument Types
-
- Type of |
@@ -479,18 +479,18 @@ |
---|
+
A little familiarity with the type traits classes allows us to construct a single mapping that allows us to determine the type of parameter from the type - of the contained class. The type traits classes provide a transformation add_reference, which + of the contained class. The type traits classes provide a transformation add_reference, which adds a reference to its type, unless it is already a reference.
Table 1.3. Using add_reference to synthesize the correct constructor +
Table 1.3. Using add_reference to synthesize the correct constructor type
-
- Type of |
- Type of |
- Type of |
---|
- This allows us to build a primary template definition for pair
+
+ This allows us to build a primary template definition for pair that can contain non-reference types, reference types, and constant reference types:
@@ -584,20 +584,20 @@ T1 first; T2 second; -pair(boost::add_reference<const T1>::type nfirst, - boost::add_reference<const T2>::type nsecond) +pair(boost::add_reference<const T1>::type nfirst, + boost::add_reference<const T2>::type nsecond) :first(nfirst), second(nsecond) { } };
Add back in the standard comparison operators, default constructor, and template
- copy constructor (which are all the same), and you have a std::pair
that
+ copy constructor (which are all the same), and you have a std::pair that
can hold reference types!
This same extension could have been done using partial template specialization
- of pair
, but to specialize
- pair
in this way would require
+ of pair, but to specialize
+ pair in this way would require
three partial specializations, plus the primary template. Type traits allows
us to define a single primary template that adjusts itself auto-magically to
any of these partial specializations, instead of a brute-force partial specialization
@@ -605,10 +605,10 @@
partial specialization to the type traits classes, resulting in code that is
easier to maintain and easier to understand.
We hope that in this article we have been able to give you some idea of what type-traits are all about. A more complete listing of the available classes @@ -618,18 +618,18 @@ does not have to sink to the lowest common denominator, and that templates can be optimal as well as generic.
-The authors would like to thank Beman Dawes and Howard Hinnant for their helpful comments when preparing this article.
-- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
![]() |
Tip |
---|---|
+ | |
function_traits is intended to introspect only C++ functions of the form R (), R( A1 ), R ( A1, ... etc. ) and not function pointers or class member - functions. To convert a function pointer type to a suitable type use remove_pointer. + functions. To convert a function pointer type to a suitable type use remove_pointer. |
Table 1.12. Function Traits Members
-
- |
An integral constant expression that gives the number of arguments
- accepted by the function type |
- |
- The type returned by function type |
- |
- The |
Table 1.13. Examples
-
- |
@@ -157,7 +157,7 @@ |
- |
@@ -169,7 +169,7 @@ |
- |
@@ -181,60 +181,60 @@ |
- |
- The type |
- |
- The type |
- |
- The type |
- |
- The type |
- |
- A compiler error: there is no |
@@ -242,7 +242,7 @@
- |
@@ -253,16 +253,19 @@ |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- |
- |
- |
- |
- |
- |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
![]() |
Tip | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Don't confuse function-types with pointers to functions:
- defines a function type,
-
- declares a prototype for a function of type
-
-
- declares a pointer and a reference to the function If you want to detect whether some type is a pointer-to-function then use:
- - or for pointers to member functions you can just use is_member_function_pointer + or for pointers to member functions you can just use is_member_function_pointer directly. |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
- | Copyright © 2000, 2006 Adobe Systems Inc, David Abrahams,
+
+ Ramey and Jeremy Siek | + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at <ulink url="http://www.boost.orgLICENSE_1_0.txt"> + http:/www.boost.org/LICENSE_1_0.txt </ulink>) + |
![]() |
Important | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ is_pointer detects "real"
pointer types only, and not smart pointers. Users
- should not specialise
diff --git a/doc/html/boost_typetraits/reference/is_polymorphic.html b/doc/html/boost_typetraits/reference/is_polymorphic.html
index 8ba6496..439eb74 100644
--- a/doc/html/boost_typetraits/reference/is_polymorphic.html
+++ b/doc/html/boost_typetraits/reference/is_polymorphic.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_reference.html b/doc/html/boost_typetraits/reference/is_reference.html
index e2f2192..0c8bca0 100644
--- a/doc/html/boost_typetraits/reference/is_reference.html
+++ b/doc/html/boost_typetraits/reference/is_reference.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_same.html b/doc/html/boost_typetraits/reference/is_same.html
index 198aa4f..c1bcceb 100644
--- a/doc/html/boost_typetraits/reference/is_same.html
+++ b/doc/html/boost_typetraits/reference/is_same.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_scalar.html b/doc/html/boost_typetraits/reference/is_scalar.html
index a2c1119..daa6286 100644
--- a/doc/html/boost_typetraits/reference/is_scalar.html
+++ b/doc/html/boost_typetraits/reference/is_scalar.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_signed.html b/doc/html/boost_typetraits/reference/is_signed.html
index 680dbaa..e367498 100644
--- a/doc/html/boost_typetraits/reference/is_signed.html
+++ b/doc/html/boost_typetraits/reference/is_signed.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_stateless.html b/doc/html/boost_typetraits/reference/is_stateless.html
index c7d63bf..af9f386 100644
--- a/doc/html/boost_typetraits/reference/is_stateless.html
+++ b/doc/html/boost_typetraits/reference/is_stateless.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_union.html b/doc/html/boost_typetraits/reference/is_union.html
index a051ae4..16a82bc 100644
--- a/doc/html/boost_typetraits/reference/is_union.html
+++ b/doc/html/boost_typetraits/reference/is_union.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_unsigned.html b/doc/html/boost_typetraits/reference/is_unsigned.html
index d18fdbf..fa0c65a 100644
--- a/doc/html/boost_typetraits/reference/is_unsigned.html
+++ b/doc/html/boost_typetraits/reference/is_unsigned.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_void.html b/doc/html/boost_typetraits/reference/is_void.html
index 12b570a..89063d7 100644
--- a/doc/html/boost_typetraits/reference/is_void.html
+++ b/doc/html/boost_typetraits/reference/is_void.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/is_volatile.html b/doc/html/boost_typetraits/reference/is_volatile.html
index fa1b090..3cb0ed2 100644
--- a/doc/html/boost_typetraits/reference/is_volatile.html
+++ b/doc/html/boost_typetraits/reference/is_volatile.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/make_signed.html b/doc/html/boost_typetraits/reference/make_signed.html
index bbf824e..de6a3f7 100644
--- a/doc/html/boost_typetraits/reference/make_signed.html
+++ b/doc/html/boost_typetraits/reference/make_signed.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/make_unsigned.html b/doc/html/boost_typetraits/reference/make_unsigned.html
index b77a4d5..1b86312 100644
--- a/doc/html/boost_typetraits/reference/make_unsigned.html
+++ b/doc/html/boost_typetraits/reference/make_unsigned.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/promote.html b/doc/html/boost_typetraits/reference/promote.html
index cb3bf1f..8a833eb 100644
--- a/doc/html/boost_typetraits/reference/promote.html
+++ b/doc/html/boost_typetraits/reference/promote.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/rank.html b/doc/html/boost_typetraits/reference/rank.html
index b60bfc2..4510d27 100644
--- a/doc/html/boost_typetraits/reference/rank.html
+++ b/doc/html/boost_typetraits/reference/rank.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/remove_all_extents.html b/doc/html/boost_typetraits/reference/remove_all_extents.html
index b7b23d5..89104df 100644
--- a/doc/html/boost_typetraits/reference/remove_all_extents.html
+++ b/doc/html/boost_typetraits/reference/remove_all_extents.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/remove_const.html b/doc/html/boost_typetraits/reference/remove_const.html
index 26e6421..bf4643a 100644
--- a/doc/html/boost_typetraits/reference/remove_const.html
+++ b/doc/html/boost_typetraits/reference/remove_const.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/remove_cv.html b/doc/html/boost_typetraits/reference/remove_cv.html
index 290a560..845be09 100644
--- a/doc/html/boost_typetraits/reference/remove_cv.html
+++ b/doc/html/boost_typetraits/reference/remove_cv.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_typetraits/reference/remove_extent.html b/doc/html/boost_typetraits/reference/remove_extent.html
index 24aa231..f899db9 100644
--- a/doc/html/boost_typetraits/reference/remove_extent.html
+++ b/doc/html/boost_typetraits/reference/remove_extent.html
@@ -1,13 +1,13 @@
- |