diff --git a/boost/operator_idp5208672.html b/boost/operator_idp5208672.html new file mode 100644 index 0000000..fb8b6fe --- /dev/null +++ b/boost/operator_idp5208672.html @@ -0,0 +1,55 @@ + + + +Function operator<< + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+
+
+

Function operator<<

+

boost::operator<<

+
+

Synopsis

+
// In header: <boost/type_index.hpp>
+
+
+std::basic_ostream & 
+operator<<(std::basic_ostream, template_index/type_index const & rhs);
+
+

Description

+

Output operators for type_index and template_index

+
+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/boost/template_id.html b/boost/template_id.html index a3560c4..e6d31f5 100644 --- a/boost/template_id.html +++ b/boost/template_id.html @@ -34,7 +34,7 @@ template<typename T> template_index template_id();
-

Description

+

Description

Method for constructing template_index instance for type T. Strips const, volatile and & modifiers from T.

diff --git a/boost/template_id_with_cvr.html b/boost/template_id_with_cvr.html index 5262ce8..9658fb1 100644 --- a/boost/template_id_with_cvr.html +++ b/boost/template_id_with_cvr.html @@ -34,7 +34,7 @@ template<typename T> template_index template_id_with_cvr();
-

Description

+

Description

Factory method for constructing template_index instance for type T. Does not strips const, volatile and & modifiers from T.

diff --git a/boost/template_index.html b/boost/template_index.html index b1e3817..171f884 100644 --- a/boost/template_index.html +++ b/boost/template_index.html @@ -34,49 +34,61 @@ class template_index { public: + // construct/copy/destruct + template_index(); - // public static functions - template<typename T> static template_index construct(); - template<typename T> static template_index construct_with_cvr(); + // public member functions + bool before(const template_index &) const; + const char * name() const; + std::string name_demangled() const; + std::size_t hash_code() const; - // public member functions - bool before(const template_index &) const; - const char * name() const; - std::string name_demangled() const; - std::size_t hash_code() const; + // public static functions + template<typename T> static template_index construct(); + template<typename T> static template_index construct_with_cvr(); };
-

Description

+

Description

Copyable type_info that does not require RTTI and could store const, volatile and references if constructed via construct_with_cvr()

-

-template_index public static functions

+

+template_index + public + construct/copy/destruct

+
  1. +
    template_index();
    +

    Default constructor.

    +
+
+
+

+template_index public member functions

  1. -
    template<typename T> static template_index construct();
    -

    Factory method for constructing template_index instance for type T. Strips const, volatile and & modifiers from T

    +
    bool before(const template_index & rhs) const;
    +

    Returns true if the type precedes the type of rhs in the collation order. The collation order is just an internal order.

  2. -
    template<typename T> static template_index construct_with_cvr();
    -

    Factory method for constructing template_index instance for type T. Does not strips const, volatile and & modifiers from T

    +
    const char * name() const;
    Retrurns raw name.
  3. +
  4. +
    std::string name_demangled() const;
    Retrurns user-friendly name.
  5. +
  6. +
    std::size_t hash_code() const;
    +

    Function for getting hash value

-

-template_index public member functions

+

+template_index public static functions

  1. -
    bool before(const template_index & rhs) const;
    -

    Returns true if the type precedes the type of rhs in the collation order. The collation order is just an internal order.

    +
    template<typename T> static template_index construct();
    +

    Factory method for constructing template_index instance for type T. Strips const, volatile and & modifiers from T

  2. -
    const char * name() const;
    Retrurns raw name.
  3. -
  4. -
    std::string name_demangled() const;
    Retrurns user-friendly name.
  5. -
  6. -
    std::size_t hash_code() const;
    -

    Function for getting hash value

    +
    template<typename T> static template_index construct_with_cvr();
    +

    Factory method for constructing template_index instance for type T. Does not strips const, volatile and & modifiers from T

diff --git a/boost/type_id.html b/boost/type_id.html index 37824a6..696eb40 100644 --- a/boost/type_id.html +++ b/boost/type_id.html @@ -7,7 +7,7 @@ - + @@ -20,7 +20,7 @@

-PrevUpHomeNext +PrevUpHomeNext
@@ -34,7 +34,7 @@ template<typename T> type_index type_id();
-

Description

+

Description

Function, to get type_index for a type T. Strips const, volatile and & modifiers from T.

@@ -48,7 +48,7 @@
-PrevUpHomeNext +PrevUpHomeNext
diff --git a/boost/type_id_rtti_on_idp5202400.html b/boost/type_id_rtti_on_idp5202400.html new file mode 100644 index 0000000..9dc0317 --- /dev/null +++ b/boost/type_id_rtti_on_idp5202400.html @@ -0,0 +1,54 @@ + + + +Function template type_id_rtti_only + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+
+
+

Function template type_id_rtti_only

+

boost::type_id_rtti_only

+
+

Synopsis

+
// In header: <boost/type_index.hpp>
+
+
+template<typename T> type_index type_id_rtti_only(T & rtti_val);
+
+

Description

+

Function, that works exactly like C++ typeid(rtti_val) call, but returns boost::type_index. This method available only with RTTI enabled.

+
+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/boost/type_id_rtti_on_idp5205536.html b/boost/type_id_rtti_on_idp5205536.html new file mode 100644 index 0000000..eab1c80 --- /dev/null +++ b/boost/type_id_rtti_on_idp5205536.html @@ -0,0 +1,54 @@ + + + +Function template type_id_rtti_only + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+
+
+

Function template type_id_rtti_only

+

boost::type_id_rtti_only

+
+

Synopsis

+
// In header: <boost/type_index.hpp>
+
+
+template<typename T> type_index type_id_rtti_only(T * rtti_val);
+
+

Description

+

Function, that works exactly like C++ typeid(rtti_val) call, but returns boost::type_index. This method available only with RTTI enabled.

+
+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/boost/type_index.html b/boost/type_index.html index 5b9c65c..c71fd87 100644 --- a/boost/type_index.html +++ b/boost/type_index.html @@ -37,39 +37,64 @@ // types typedef std::type_info stl_type_info; - // public static functions - template<typename T> static type_index construct(); + // construct/copy/destruct + type_index(); - // public member functions - bool before(type_index const &) const; - const char * name() const; - std::string name_demangled() const; - std::size_t hash_code() const; + // public member functions + bool before(type_index const &) const; + const char * name() const; + std::string name_demangled() const; + std::size_t hash_code() const; + + // public static functions + template<typename T> static type_index construct(); + template<typename T> static type_index construct_rtti_only(T &); + template<typename T> static type_index construct_rtti_only(T *); };
-

Description

+

Description

-

-type_index public static functions

+

+type_index + public + construct/copy/destruct

  1. -
    template<typename T> static type_index construct();
    -

    Factory method for constructing type_index instance for type T. Strips const, volatile and & modifiers from T.

    +
    type_index();
    +

    Default constructor.

-

-type_index public member functions

+

+type_index public member functions

  1. -
    bool before(type_index const & rhs) const;
    +
    bool before(type_index const & rhs) const;

    Returns true if the type precedes the type of rhs in the collation order. The collation order is just an internal order.

  2. -
    const char * name() const;
    Retrurns raw name.
  3. +
    const char * name() const;
    Retrurns raw name.
  4. -
    std::string name_demangled() const;
    Retrurns user-friendly name.
  5. +
    std::string name_demangled() const;
    Retrurns user-friendly name.
  6. -
    std::size_t hash_code() const;
    Function for getting hash value.
  7. +
    std::size_t hash_code() const;
    Function for getting hash value. +
+
+
+

+type_index public static functions

+
    +
  1. +
    template<typename T> static type_index construct();
    +

    Factory method for constructing type_index instance for type T. Strips const, volatile and & modifiers from T.

    +
  2. +
  3. +
    template<typename T> static type_index construct_rtti_only(T & rtti_val);
    +

    Factory function, that works exactly like C++ typeid(rtti_val) call, but returns boost::type_index. This method available only with RTTI enabled.

    +
  4. +
  5. +
    template<typename T> static type_index construct_rtti_only(T * rtti_val);
    +

    Factory function, that works exactly like C++ typeid(rtti_val) call, but returns boost::type_index. This method available only with RTTI enabled.

    +
diff --git a/boost_typeindex/getting_started.html b/boost_typeindex/getting_started.html index 5ecb16b..b2b7820 100644 --- a/boost_typeindex/getting_started.html +++ b/boost_typeindex/getting_started.html @@ -31,8 +31,10 @@ typeid(T) with boost::type_id<T>() and const std::type_info&, std::type_index - with boost::type_index. That's all, you are now using - Boost.TypeIndex. + with boost::type_index. For cases when RTTI is really + required, replace typeid(variable) + with boost::type_id_rtti_only(variable). + That's all, you are now using Boost.TypeIndex.

To get nice human readable name, use name_demangled() member function: diff --git a/boost_typeindex/performance.html b/boost_typeindex/performance.html index 7a7db72..2b9acc9 100644 --- a/boost_typeindex/performance.html +++ b/boost_typeindex/performance.html @@ -6,7 +6,7 @@ - + @@ -19,7 +19,7 @@


-PrevUpHome +PrevUpHome

@@ -58,7 +58,7 @@
-PrevUpHome +PrevUpHome
diff --git a/boost_typeindex_header_reference.html b/boost_typeindex_header_reference.html index 20ce420..e670103 100644 --- a/boost_typeindex_header_reference.html +++ b/boost_typeindex_header_reference.html @@ -35,18 +35,20 @@ template<typename T> template_index template_id(); template<typename T> template_index template_id_with_cvr(); template<typename T> type_index type_id(); + template<typename T> type_index type_id_rtti_only(T &); + template<typename T> type_index type_id_rtti_only(T *); std::basic_ostream & - operator<<(std::basic_ostream, template_index/type_index const &); + operator<<(std::basic_ostream, template_index/type_index const &); // All possible operators for comparison of std::type_info's and type_index'es. - bool operator(type_index/std::type_info const & lhs, + bool operator(type_index/std::type_info const & lhs, type_index/std::type_info const & rhs); // All possible operators for comparison of template_index'es. - bool operator(template_index const & lhs, template_index const & rhs); + bool operator(template_index const & lhs, template_index const & rhs); // All possible operators for comparison of type_index'es. - bool operator(type_index const & lhs, type_index const & rhs); + bool operator(type_index const & lhs, type_index const & rhs); }

diff --git a/index.html b/index.html index 5c990d4..3fd8bde 100644 --- a/index.html +++ b/index.html @@ -82,6 +82,19 @@

Boost.TypeIndex was designed to work around those issues.

+

+  +

+
+ + + + + +
[Note]Note

+ T means here type. Think + of it, as of T in template <class T> +

@@ -94,7 +107,7 @@
[Warning]
- +

Last revised: June 09, 2012 at 18:32:18 GMT

Last revised: June 26, 2012 at 17:10:49 GMT


diff --git a/standalone_HTML.manifest b/standalone_HTML.manifest index f2d818a..0014944 100644 --- a/standalone_HTML.manifest +++ b/standalone_HTML.manifest @@ -7,5 +7,7 @@ boost/type_index.html boost/template_id.html boost/template_id_with_cvr.html boost/type_id.html -boost/operator_idp1562736.html +boost/type_id_rtti_on_idp5202400.html +boost/type_id_rtti_on_idp5205536.html +boost/operator_idp5208672.html boost_typeindex/performance.html