Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

std::allocator(3) [debian man page]

std::allocator< _Tp >(3cxx)											       std::allocator< _Tp >(3cxx)

NAME
std::allocator< _Tp > - SYNOPSIS
Inherits __glibcxx_base_allocator< _Tp >. Public Types typedef const _Tp * const_pointer typedef const _Tp & const_reference typedef ptrdiff_t difference_type typedef _Tp * pointer typedef _Tp & reference typedef size_t size_type typedef _Tp value_type Public Member Functions allocator (const allocator &__a) throw () template<typename _Tp1 > allocator (const allocator< _Tp1 > &) throw () Detailed Description template<typename _Tp>class std::allocator< _Tp > The standard allocator, as per [20.4]. Further details: http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html. Definition at line 92 of file allocator.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::allocator< _Tp >(3cxx)

Check Out this Related Man Page

__gnu_cxx::__mt_alloc< _Tp, _Poolp >(3cxx)								__gnu_cxx::__mt_alloc< _Tp, _Poolp >(3cxx)

NAME
__gnu_cxx::__mt_alloc< _Tp, _Poolp > - SYNOPSIS
Inherits __gnu_cxx::__mt_alloc_base< _Tp >. Public Types typedef _Poolp __policy_type typedef _Poolp::pool_type __pool_type typedef const _Tp * const_pointer typedef const _Tp & const_reference typedef ptrdiff_t difference_type typedef _Tp * pointer typedef _Tp & reference typedef size_t size_type typedef _Tp value_type Public Member Functions __mt_alloc (const __mt_alloc &) throw () template<typename _Tp1 , typename _Poolp1 > __mt_alloc (const __mt_alloc< _Tp1, _Poolp1 > &) throw () const __pool_base::_Tune _M_get_options () void _M_set_options (__pool_base::_Tune __t) pointer address (reference __x) const const_pointer address (const_reference __x) const pointer allocate (size_type __n, const void *=0) void construct (pointer __p, const _Tp &__val) template<typename... _Args> void construct (pointer __p, _Args &&...__args) void deallocate (pointer __p, size_type __n) void destroy (pointer __p) size_type max_size () const throw () Detailed Description template<typename _Tp, typename _Poolp = __common_pool_policy<__pool, true >>class __gnu_cxx::__mt_alloc< _Tp, _Poolp > This is a fixed size (power of 2) allocator which - when compiled with thread support - will maintain one freelist per size per thread plus a global one. Steps are taken to limit the per thread freelist sizes (by returning excess back to the global list). Further details: http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch32.html. Definition at line 627 of file mt_allocator.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 __gnu_cxx::__mt_alloc< _Tp, _Poolp >(3cxx)
Man Page

13 More Discussions You Might Find Interesting

1. Programming

Problems with template instantiation in C++

I use the the g++ 4.3.2 compiler on my linux machine. If I compile the following piece of code I get a bunch of compiler time error. In my opinion the compiler have all information to process the code properly. I can't imagine, what's going wrong? Sorry for the long code portion, but I have... (10 Replies)
Discussion started by: MartinM09
10 Replies

2. Programming

Sun Solaris C++ Compiling Error

Hello. I'm using SunStudio 12 Update 1. When compiling for x86, everything works fine. When compiling for SPARC, I get the following errors. I linked libCstd.so.1 explicitly, but I get the same errors. Would anyone be kind enough to step me through resolving this? Thank you very much. **... (2 Replies)
Discussion started by: acheong87
2 Replies

3. UNIX for Dummies Questions & Answers

Linux make file

Hello everyone. I am new to creating make files. I have been able to create simple makefiles for those applications which do not involve database but am unable to create for the ones that do involve database. When I run that make file, it just deletes the .exe file of that application from the... (6 Replies)
Discussion started by: heidik
6 Replies

4. Programming

conversion to 'char' from 'int' warning

Hi, I wrote a simple code in C++ converting from UpperToLower case characters. However, my compiler gives me a warning: "warning: conversion to 'char' from 'int' may alter its value". Any tips? I would like to stress, I don't want to load my string into char array. int ToLower(string... (4 Replies)
Discussion started by: kajolo
4 Replies

5. Programming

AIX calling WINSOCK during e-mail - normal?

Hey everyone, I'm completely stumped on this. An AIX machine I'm working on is attempting to send email, but the SMTP connection is failing. I have no idea what this code does or if it should even work. If someone could give me a hand, or a suggestion on what else to use, I would appreciate... (54 Replies)
Discussion started by: ctote
54 Replies

6. Homework & Coursework Questions

Make file newby question

1. The problem statement, all variables and given/known data: I'm brand new to make files, and I was hoping someone could tell me where I'm messing up. I'm trying to build a cpp program I wrote for class on a linux system, i'm using winscp and puTTy. The program works fine when I build it... (3 Replies)
Discussion started by: Casper3912
3 Replies

7. Programming

makefile for mix of C and C++ modules

I am trying to come up with a makefile where the target is linked with object files produced by C and C++ sources. My setup is Ubuntu/gcc: $ uname -a Linux srvr1 2.6.24-24-server #1 SMP Fri Sep 18 17:24:10 UTC 2009 i686 GNU/Linux gcc version 4.2.4 $ cat main.cpp #include <iostream>... (6 Replies)
Discussion started by: migurus
6 Replies

8. HP-UX

Build issues on HP-UX

I am trying to build a software on HP-UX (HP-UX 11.00). It links against Xerces and Xalan libraries (amongst others). I am getting the following errors during the final linking phase. Can somebody help me understand the problem? I compiled Xerces and Xalan using aCC ( as recommended) while... (1 Reply)
Discussion started by: slash_blog
1 Replies

9. Programming

X11: convert a string into keysym

Dear all, i need to send fake key events to my application, where the keysym to send is readen from a config file and saved to a vector<string>. I use: #include <X11/Xlib.h> #include <X11/Intrinsic.h> #include <X11/extensions/XTest.h> #include <unistd.h> //the below function... (6 Replies)
Discussion started by: martina
6 Replies

10. Programming

Problem with STL's std::set container parameter to the operator << ()

Hi, I have this following code which gives me error when compiling. The problem is happening at the point where I create a const_iterator inside the overloaded insertion operator (i.e) operator << () function. The template argument version of set is not correct I guess. Could anyone please pitch... (3 Replies)
Discussion started by: royalibrahim
3 Replies

11. Programming

Compiling C++ code with NetCDF libraries: "undefined reference"

Hi! I am trying to compile a C++ code with cmake and gcc on Ubuntu. The code uses NetCDF4 libraries. I specify the path to these libraries as follows: -I/usr/local/include -L/usr/local/lib -lnetcdf -lnetcdf_c++4 "ccmake" and "cmake" work fine. After typing "make" I receive the error... (0 Replies)
Discussion started by: Alauda
0 Replies

12. Programming

problem in dynamic library*.so

hello I apologize if my question bothers you I work on a code developed in C + + which worked well on mac os, this code will help create libraries *.so from *.cc and *.h I used this as flags:CXXFLAGS = -g -O2 -fPIC -Wall -ldl -D_GNU_SOURCE ,CXX := g++ and $(CXX)-shared -o $(LIBNAME) $(CLIBLIB)... (0 Replies)
Discussion started by: pheapc
0 Replies

13. Programming

Gdb backtrace

Hi, all I try to understand the output from gdb Program received signal SIGABRT, Aborted. *** glibc detected *** /home/sys_cbo/dev/zif/bin/Debug/zifd: free(): invalid pointer: 0x00007fffac04d3d0 *** how should i read this? (gdb) backtrace #0 0x0000003015e32925 in raise () from... (1 Reply)
Discussion started by: huvcbo
1 Replies