Sha256: b2039c16f12923c7695f77f23b1ac6f91e657e7fe58245430e3d4fe8b2d8ef3e

Contents?: true

Size: 1.15 KB

Versions: 20

Compression:

Stored size: 1.15 KB

Contents

/* This file is part of KDevelop
    Copyright 2002-2005 Roberto Raggi <roberto@kdevelop.org>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public
   License version 2 as published by the Free Software Foundation.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public License
   along with this library; see the file COPYING.LIB.  If not, write to
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/

#ifndef MEMORYPOOL_H
#define MEMORYPOOL_H

#include "rxx_allocator.h"
#include <cstring>

/**Memory pool for chars.*/
class pool
{
  rxx_allocator<char> __alloc;

public:
  /**Allocates the @p size bytes in the pool.*/
  inline void *allocate(std::size_t __size);
};

inline void *pool::allocate(std::size_t __size)
{
  return __alloc.allocate(__size);
}

#endif // MEMORYPOOL_H

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 ext/generator/parser/memorypool.h
qtbindings-4.8.6.5 ext/generator/parser/memorypool.h
qtbindings-4.8.6.4 ext/generator/parser/memorypool.h
qtbindings-4.8.6.2 ext/generator/parser/memorypool.h
qtbindings-4.8.6.1 ext/generator/parser/memorypool.h
qtbindings-4.8.6.0 ext/generator/parser/memorypool.h
qtbindings-4.8.5.2 ext/generator/parser/memorypool.h
qtbindings-4.8.5.1 ext/generator/parser/memorypool.h
qtbindings-4.8.5.0 ext/generator/parser/memorypool.h
qtbindings-4.8.3.0-x86-mingw32 ext/generator/parser/memorypool.h
qtbindings-4.8.3.0 ext/generator/parser/memorypool.h
qtbindings-4.6.3.4-x86-mingw32 ext/generator/parser/memorypool.h
qtbindings-4.6.3.4 ext/generator/parser/memorypool.h
qtbindings-4.6.3.3 ext/generator/parser/memorypool.h
qtbindings-4.6.3.2-x86-mingw32 ext/generator/parser/memorypool.h
qtbindings-4.6.3.2 ext/generator/parser/memorypool.h
qtbindings-4.6.3.1 ext/generator/parser/memorypool.h
qtbindings-4.6.3.1-x86-mingw32 ext/generator/parser/memorypool.h
qtbindings-4.6.3.0 ext/generator/parser/memorypool.h
qtbindings-4.6.3.0-x86-mingw32 ext/generator/parser/memorypool.h