aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/context.cxx
blob: da31d6e41e2e75aedef2d3a61f36fbfde6d71387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// file      : cutl/compiler/context.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009 Code Synthesis Tools CC
// license   : MIT; see accompanying LICENSE file

#include <cutl/compiler/context.hxx>

namespace cutl
{
  namespace compiler
  {
    void context::
    remove (char const* key)
    {
      map::iterator i (map_.find (key));

      if (i == map_.end ())
        throw no_entry ();

      map_.erase (i);
    }
  }
}