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

Struct template pointer_plus_bits<T *, NumBits>

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

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

Struct template pointer_plus_bits<T *, NumBits>

boost::intrusive::pointer_plus_bits<T *, NumBits>

Synopsis

// In header: <boost/intrusive/pointer_plus_bits.hpp>
template<typename T, std::size_t NumBits> 
struct pointer_plus_bits<T *, NumBits> {
  // types
  typedef T * pointer;
  // public static functions
  static pointer get_pointer(pointer);
  static void set_pointer(pointer &, pointer);
  static std::size_t get_bits(pointer);
  static void set_bits(pointer &, std::size_t);
  // public data members
  static const uintptr_t Mask;
};

Description

Это специализация для встраивания дополнительных битов информации в необработанный указатель. Дополнительные биты хранятся в нижних битах указателя.

pointer_plus_bits public static functions

  1. <
    staticpointerget_pointer(pointern);
    >
  2. <
    staticvoidset_pointer(pointer&n,pointerp);
    >
  3. <
    staticstd::size_tget_bits(pointern);
    >
  4. <
    staticvoidset_bits(pointer&n,std::size_tc);
    >

PrevUpHomeNext

Статья Struct template pointer_plus_bits<T *, NumBits> раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




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



:: Главная :: Reference ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 21:41:45/0.027777910232544/1