summaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-18 18:17:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-19 08:39:02 +0200
commitbef1fce0e10b0b023dcf6e02214730754dc0fe17 (patch)
tree221e81a28b9e0368602d956e407fa59f9fe5a53c /odb
parentce68e14b61cc25a28f7dbc39a609898b71df4017 (diff)
Add function for getting container member id type
Diffstat (limited to 'odb')
-rw-r--r--odb/context.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/context.hxx b/odb/context.hxx
index 3055997..3461da2 100644
--- a/odb/context.hxx
+++ b/odb/context.hxx
@@ -247,6 +247,12 @@ public:
}
static semantics::type&
+ container_idt (semantics::type& c)
+ {
+ return *c.get<semantics::type*> ("tree-id-type");
+ }
+
+ static semantics::type&
container_vt (semantics::type& c)
{
return *c.get<semantics::type*> ("tree-value-type");