Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Boost.TypeIndex Header Reference

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Chapter 38. Boost.TypeIndex 4.1

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Boost.TypeIndex Header Reference

Включает минимальный набор заголовков, необходимых для использования Boost. Библиотека TypeIndex.

При включении этого файла будут включены и использованы наиболее оптимальные классы индексов типов::typeindex::type_index и boost::typeindex::type_info.

BOOST_TYPE_INDEX_REGISTER_CLASS
BOOST_TYPE_INDEX_FUNCTION_SIGNATURE
BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING
BOOST_TYPE_INDEX_USER_TYPEINDEX
BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY
namespace boost {
  namespace typeindex {
    typedef platform_specific type_index;
    typedef type_index::type_info_t type_info;
    template<typename T> type_index type_id();
    template<typename T> type_index type_id_with_cvr();
    template<typename T> type_index type_id_runtime(const T &);
  }
}

Содержитboost::typeindex::ctti_type_indexкласс constexpr, если C++14 constexpr поддерживается компилятором.

boost::typeindex::ctti_type_indexКласс может быть использован в качестве замены для std::type_index.

Используется в ситуациях, когда метод typeid() недоступен или определен макрос BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY.

namespace boost {
  namespace typeindex {
    class ctti_type_index;
    // Helper method for getting detail::ctti_data of a template parameter T. 
    template<typename T> unspecified ctti_construct();
  }
}

Содержитboost::typeindex::stl_type_indexКласс.

boost::typeindex::stl_type_indexкласс может использоваться в качестве замены для std::type_index.

Он используется в ситуациях, когда включен RTTI или доступен метод typeid(). При отключении typeid() или BOOST_TYPE_INDEX_FORCE_NO_RTTI_COMPATIBILITY макрос определяется как boost::typeindex::ctti обычно используется вместоboost::typeindex::stl_type_index.

namespace boost {
  namespace typeindex {
    class stl_type_index;
  }
}
namespace boost {
  template<typename It> std::size_t hash_range(It, It);
  namespace typeindex {
    template<typename Derived, typename TypeInfo> class type_index_facade;
    // noexcept comparison operators for type_index_facade classes. 
    bool operator==,!=,<,...(const type_index_facade & lhs, 
                             const type_index_facade & rhs);
    // noexcept comparison operators for type_index_facade and it's TypeInfo classes. 
    bool operator==,!=,<,...(const type_index_facade & lhs, 
                             const TypeInfo & rhs);
    // noexcept comparison operators for type_index_facade's TypeInfo and type_index_facade classes. 
    bool operator==,!=,<,...(const TypeInfo & lhs, 
                             const type_index_facade & rhs);
    // Ostream operator that will output demangled name. 
    template<typename CharT, typename TriatT, typename Derived, 
             typename TypeInfo> 
      std::basic_ostream< CharT, TriatT > & 
      operator<<(std::basic_ostream< CharT, TriatT > & ostr, 
                 const type_index_facade< Derived, TypeInfo > & ind);
    template<typename Derived, typename TypeInfo> 
      std::size_t hash_value(const type_index_facade< Derived, TypeInfo > &);
  }
}

PrevUpHomeNext

Статья Boost.TypeIndex Header Reference раздела The Boost C++ Libraries BoostBook Documentation Subset Chapter 38. Boost.TypeIndex 4.1 может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Chapter 38. Boost.TypeIndex 4.1 ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 17:39:34/0.0065300464630127/0