aboutsummaryrefslogtreecommitdiff
path: root/odb/session.ixx
blob: 4748cae983b5188794ad088e362e451bd09b328e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// file      : odb/session.ixx
// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#include <odb/exceptions.hxx>

namespace odb
{
  template <typename T>
  inline void session::
  erase (const position<T>& p)
  {
    // @@ Empty maps are not cleaned up by this version of erase.
    //
    if (p.map_ != 0)
      p.map_->erase (p.pos_);
  }
}