~ubuntu-branches/ubuntu/trusty/rheolef/trusty

« back to all changes in this revision

Viewing changes to util/lib/stack_allocator.h

  • Committer: Package Import Robot
  • Author(s): Pierre Saramito
  • Date: 2012-04-06 09:12:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120406091221-m58me99p1nxqui49
Tags: 6.0-1
* New upstream release 6.0 (major changes):
  - massively distributed and parallel support
  - full FEM characteristic method (Lagrange-Gakerkin method) support
  - enhanced users documentation 
  - source code supports g++-4.7 (closes: #667356)
* debian/control: dependencies for MPI distributed solvers added
* debian/rules: build commands simplified
* debian/librheolef-dev.install: man1/* to man9/* added
* debian/changelog: package description rewritted (closes: #661689)

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
// typedefs:
75
75
 
76
 
    typedef size_t    size_type;
77
 
    typedef ptrdiff_t difference_type;
78
 
    typedef T*        pointer;
79
 
    typedef const T*  const_pointer;
80
 
    typedef T&        reference;
81
 
    typedef const T&  const_reference;
82
 
    typedef T         value_type;
 
76
    typedef size_t         size_type;
 
77
    typedef std::ptrdiff_t difference_type;
 
78
    typedef T*             pointer;
 
79
    typedef const T*       const_pointer;
 
80
    typedef T&             reference;
 
81
    typedef const T&       const_reference;
 
82
    typedef T              value_type;
83
83
 
84
84
// constructors:
85
85
 
137
137
        // placement new operator:
138
138
        new( reinterpret_cast<void*>(p) ) T(c);
139
139
    }
 
140
    // C++ 2011: default construct a value of type T at the location referenced by p
 
141
    void construct (pointer p) { new ( reinterpret_cast<void*>(p) ) T(); }
 
142
 
140
143
    void destroy (pointer p)
141
144
    {
142
145
        // call destructor directly: