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

Struct default_user_allocator_new_delete

Boost , Boost.Pool , Header <boost/pool/pool.hpp>

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 default_user_allocator_new_delete

boost::default_user_allocator_new_delete — Allocator used as the default template parameter for a UserAllocator template parameter. Uses new and delete.

Synopsis

// In header: <boost/pool/pool.hpp>

struct default_user_allocator_new_delete {
  // types
  typedef std::size_t    size_type;        // An unsigned integral type that can represent the size of the largest object to be allocated. 
  typedef std::ptrdiff_t difference_type;  // A signed integral type that can represent the difference of any two pointers. 
  // public static functions
  static char * malloc(const size_type);
  static void free(char *const);
};

Description

default_user_allocator_new_delete public static functions

  1. <
    staticchar*malloc(constsize_typebytes);
    >

    Попытки выделить из системы n байт. Возвращает 0, если вне памяти

  2. <
    staticvoidfree(char*constblock);
    >

    Попытки снятия блокировки.

    Требуется:

    Блок должен быть ранее возвращен с вызова UserAllocator::malloc.


PrevUpHomeNext

Статья Struct default_user_allocator_new_delete раздела Boost.Pool Header <boost/pool/pool.hpp> может быть полезна для разработчиков на c++ и boost.




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



:: Главная :: Header <boost/pool/pool.hpp> ::


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 04:04:59/0.0051851272583008/1